本文整理汇总了Java中com.gwtplatform.mvp.client.gin.DefaultModule类的典型用法代码示例。如果您正苦于以下问题:Java DefaultModule类的具体用法?Java DefaultModule怎么用?Java DefaultModule使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DefaultModule类属于com.gwtplatform.mvp.client.gin包,在下文中一共展示了DefaultModule类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: configure
import com.gwtplatform.mvp.client.gin.DefaultModule; //导入依赖的package包/类
@Override
protected void configure() {
install(new DefaultModule.Builder()
.placeManager(DefaultPlaceManager.class)
.tokenFormatter(RouteTokenFormatter.class)
.build());
bind(CurrentUser.class).asEagerSingleton();
bindConstant().annotatedWith(DefaultPlace.class).to(NameTokens.getHome());
bindConstant().annotatedWith(ErrorPlace.class).to(NameTokens.getHome());
bindConstant().annotatedWith(UnauthorizedPlace.class).to(NameTokens.getLogin());
install(new ServiceModule());
install(new LoginModule());
install(new ApplicationModule());
}
示例2: configure
import com.gwtplatform.mvp.client.gin.DefaultModule; //导入依赖的package包/类
@Override
protected void configure() {
install(new DefaultModule());
install(new ApplicationModule());
// DefaultPlaceManager Places
bindConstant().annotatedWith(DefaultPlace.class).to(NameTokens.DEALS);
bindConstant().annotatedWith(ErrorPlace.class).to(NameTokens.ERROR);
bindConstant().annotatedWith(UnauthorizedPlace.class).to(NameTokens.UNAUTHORIZED);
bind(I18nHelper.class).asEagerSingleton();
bind(Bootstrapper.class).to(AuthBootstrapper.class).in(Singleton.class);
bind(User.class).asEagerSingleton();
GinMultibinder<RestyGwtRequestListener> requestListenerMultibinder = GinMultibinder.newSetBinder(binder(), RestyGwtRequestListener.class);
// requestListenerMultibinder.addBinding().to(RestyGwtLoggingRequestListener.class);
requestListenerMultibinder.addBinding().to(RequestLoaderRestyGwtListener.class);
requestListenerMultibinder.addBinding().to(ErrorHandlingRestyGwtRequestListener.class);
// bind(RequestLoader.class).to(StatusMessageRequestLoader.class).in(Singleton.class);
bind(RequestLoader.class).to(DialogBoxRequestLoader.class).in(Singleton.class);
bind(RestyGwtDispatcher.class).toProvider(RestyGwtDispatcher.Provider.class).asEagerSingleton();
bind(Editor.class).toProvider(GameBuilderProvider.class).in(Singleton.class);
bind(ResourceLoader.class).asEagerSingleton();
}
示例3: configure
import com.gwtplatform.mvp.client.gin.DefaultModule; //导入依赖的package包/类
@Override
protected void configure() {
install(new DefaultModule.Builder().build());
install(new ApplicationModule());
bind(ResourceLoader.class).asEagerSingleton();
// DefaultPlaceManager Places
bindConstant().annotatedWith(DefaultPlace.class).to(NameTokens.google_plus);
bindConstant().annotatedWith(ErrorPlace.class).to(NameTokens.google_plus);
bindConstant().annotatedWith(UnauthorizedPlace.class).to(NameTokens.google_plus);
}
示例4: configure
import com.gwtplatform.mvp.client.gin.DefaultModule; //导入依赖的package包/类
@Override
protected void configure() {
install(new DefaultModule.Builder().build());
install(new ApplicationModule());
bind(ResourceLoader.class).asEagerSingleton();
// DefaultPlaceManager Places
bindConstant().annotatedWith(DefaultPlace.class).to(NameTokens.HOME);
bindConstant().annotatedWith(ErrorPlace.class).to(NameTokens.HOME);
bindConstant().annotatedWith(UnauthorizedPlace.class).to(NameTokens.HOME);
}
示例5: configure
import com.gwtplatform.mvp.client.gin.DefaultModule; //导入依赖的package包/类
@Override
protected void configure() {
this.install(new DefaultModule.Builder() //
.tokenFormatter(OwnRouteTokenFormatter.class) //
.placeManager(OwnPlaceManagerImpl.class) //
.defaultPlace(NameTokens.ADDRESS) //
.errorPlace(NameTokens.LOGIN) //
.unauthorizedPlace(NameTokens.LOGIN) //
.build());
this.install(new ApplicationModule());
this.install(new ServiceModule());
this.bind(ResourceLoader.class).asEagerSingleton();
}
示例6: configure
import com.gwtplatform.mvp.client.gin.DefaultModule; //导入依赖的package包/类
@Override
protected void configure()
{
install(new DefaultModule());
install(new RpcDispatchAsyncModule.Builder().build());
install(new ApplicationModule());
// DefaultPlaceManager Places
bindConstant().annotatedWith(DefaultPlace.class).to(NameTokens.about);
bindConstant().annotatedWith(ErrorPlace.class).to(NameTokens.about);
bindConstant().annotatedWith(UnauthorizedPlace.class).to(NameTokens.about);
}
示例7: configure
import com.gwtplatform.mvp.client.gin.DefaultModule; //导入依赖的package包/类
@Override
protected void configure() {
// Singletons
install(new DefaultModule());
install(new ApplicationModule());
// Constants
bindConstant().annotatedWith(DefaultPlace.class).to(NameTokens.home);
bindConstant().annotatedWith(ErrorPlace.class).to(NameTokens.router);
bindConstant().annotatedWith(UnauthorizedPlace.class).to(NameTokens.router);
}
示例8: configure
import com.gwtplatform.mvp.client.gin.DefaultModule; //导入依赖的package包/类
@Override
protected void configure() {
install(new DefaultModule());
// DefaultPlaceManager Places
bindConstant().annotatedWith(DefaultPlace.class).to(NameTokens.HOME);
bindConstant().annotatedWith(ErrorPlace.class).to(NameTokens.HOME);
bindConstant().annotatedWith(UnauthorizedPlace.class).to(NameTokens.HOME);
}