Skip to content

Instantly share code, notes, and snippets.

@Elrhino
Created October 20, 2015 05:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Elrhino/43531a737cbda9d6af50 to your computer and use it in GitHub Desktop.
Save Elrhino/43531a737cbda9d6af50 to your computer and use it in GitHub Desktop.
Code snippets from toaster launcher part 2
public class ClientModule extends AbstractPresenterModule {
@Override
protected void configure() {
install(new DefaultModule.Builder().build());
install(new ApplicationModule());
bindConstant().annotatedWith(DefaultPlace.class).to(NameTokens.LOGIN);
bindConstant().annotatedWith(ErrorPlace.class).to(NameTokens.LOGIN);
bindConstant().annotatedWith(UnauthorizedPlace.class).to(NameTokens.LOGIN);
bind(CurrentUser.class).asEagerSingleton();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment