Created
October 20, 2015 05:25
-
-
Save Elrhino/43531a737cbda9d6af50 to your computer and use it in GitHub Desktop.
Code snippets from toaster launcher part 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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