public class DefaultModule extends AbstractGinModule
install(new DefaultModule(MyPlaceManager.class))
instead of manually
binding the different classes to their default implementation.Modifier and Type | Class and Description |
---|---|
static class |
DefaultModule.Builder
A DefaultModule builder.
|
Constructor and Description |
---|
DefaultModule()
When instantiating the module this way be sure to read
DefaultPlaceManager
Important! |
DefaultModule(Class<? extends PlaceManager> placeManagerClass)
Deprecated.
Please use the
DefaultModule.Builder . |
DefaultModule(Class<? extends PlaceManager> placeManagerClass,
Class<? extends TokenFormatter> tokenFormatterClass)
Deprecated.
Please use the
DefaultModule.Builder . |
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.@Deprecated public DefaultModule(Class<? extends PlaceManager> placeManagerClass)
DefaultModule.Builder
.DefaultPlaceManager
for more
details.placeManagerClass
- DefaultPlaceManager
@see See
PlaceManager wiki for more examples@Deprecated public DefaultModule(Class<? extends PlaceManager> placeManagerClass, Class<? extends TokenFormatter> tokenFormatterClass)
DefaultModule.Builder
.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.