public class DefaultModule extends AbstractGinModule
install(new DefaultModule(MyPlaceManager.class))
instead of manually
binding the different classes to their default implementation.Constructor and Description |
---|
DefaultModule()
When instantiating the module this way be sure to read
DefaultPlaceManager
Important! |
DefaultModule(Class<? extends PlaceManager> placeManagerClass)
Manually setup a PlaceManager.
|
DefaultModule(Class<? extends PlaceManager> placeManagerClass,
Class<? extends TokenFormatter> tokenFormatterClass)
Manually setup a
PlaceManager and TokenFormatter . |
Modifier and Type | Method and Description |
---|---|
protected void |
configure() |
bind, bind, bind, bindConstant, binder, configure, install, requestStaticInjection
public DefaultModule()
DefaultPlaceManager
Important! If you use this class, don't forget to bind
DefaultPlace
,
ErrorPlace
and
UnauthorizedPlace
to Presenter name tokens in your Gin module.public DefaultModule(Class<? extends PlaceManager> placeManagerClass)
DefaultPlaceManager
for more
details.placeManagerClass
- DefaultPlaceManager
@see See
PlaceManager wiki for more examplespublic DefaultModule(Class<? extends PlaceManager> placeManagerClass, Class<? extends TokenFormatter> tokenFormatterClass)
PlaceManager
and TokenFormatter
.
See DefaultPlaceManager
, ParameterTokenFormatter
and RouteTokenFormatter
for more
details.
placeManagerClass
- The PlaceManager
implementation.tokenFormatterClass
- The TokenFormatter
implementation.protected void configure()
configure
in class AbstractGinModule
Copyright © 2010-2014 ArcBees. All Rights Reserved.