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

com.gwtplatform.dispatch.rest.rebind.RestGinModule.vm Maven / Gradle / Ivy

There is a newer version: 1.6
Show newest version
package ${package};

import javax.inject.Singleton;

import com.google.gwt.inject.client.AbstractGinModule;
import com.gwtplatform.dispatch.rest.client.ActionMetadataProvider;
import com.gwtplatform.dispatch.rest.client.ActionMetadataProviderImpl;
import com.gwtplatform.dispatch.rest.client.serialization.JacksonMapperProvider;
import com.gwtplatform.dispatch.rest.client.serialization.JacksonMapperProviderImpl;

#foreach (${service} in ${serviceDefinitions.getServices()})
import ${service.qualifiedSourceName};
import ${service.qualifiedSourceName.replace("shared", "client")}${suffix};
#end

public class ${implName} extends AbstractGinModule {
    @Override
    protected void configure() {
        bind(ActionMetadataProvider.class).to(ActionMetadataProviderImpl.class);
        bind(JacksonMapperProvider.class).to(JacksonMapperProviderImpl.class).in(Singleton.class);

#foreach (${service} in ${serviceDefinitions.getServices()})
        bind(${service.name}.class).to(${service.name}${suffix}.class).in(Singleton.class);
#end
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy