All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.googlecode.gwt.test.internal.patchers.ImplPatcher Maven / Gradle / Ivy

There is a newer version: 0.63
Show newest version
package com.googlecode.gwt.test.internal.patchers;

import com.google.gwt.core.client.impl.Impl;
import com.googlecode.gwt.test.internal.GwtConfig;
import com.googlecode.gwt.test.patchers.PatchClass;
import com.googlecode.gwt.test.patchers.PatchMethod;
import org.apache.commons.lang3.builder.HashCodeBuilder;

@PatchClass(Impl.class)
class ImplPatcher {

    @PatchMethod
    static int getHashCode(Object o) {
        return HashCodeBuilder.reflectionHashCode(o);
    }

    @PatchMethod
    static String getHostPageBaseURL() {
        return "http://127.0.0.1:8888/";
    }

    @PatchMethod
    static String getModuleBaseURL() {
        return getHostPageBaseURL() + getModuleName() + "/";
    }

    @PatchMethod
    static String getModuleName() {
        return GwtConfig.get().getModuleAlias();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy