public abstract class AbstractPresenterModule extends AbstractGinModule
Constructor and Description |
---|
AbstractPresenterModule() |
Modifier and Type | Method and Description |
---|---|
protected <P extends Presenter<?,?>,Proxy_ extends Proxy<P>> |
bindPresenter(Class<P> presenter,
Class<? extends P> presenterImpl,
Class<Proxy_> proxy)
Convenience method for binding a singleton presenter with its proxy, when
using automatically generated proxy classes and non-singleton views.
|
protected <P extends Presenter<?,?>,V extends View,Proxy_ extends Proxy<P>> |
bindPresenter(Class<P> presenter,
Class<? extends P> presenterImpl,
Class<V> view,
Class<? extends V> viewImpl,
Class<Proxy_> proxy)
Convenience method for binding a singleton presenter with its view and its
proxy, when using automatically generated proxy classes.
|
protected <P extends Presenter<?,?>,Proxy_ extends Proxy<P>> |
bindPresenter(Class<P> presenterImpl,
Class<Proxy_> proxy)
Convenience method for binding a singleton presenter with its proxy, when
using automatically generated proxy classes and non-singleton views.
|
protected <P extends Presenter<?,?>,V extends View,Proxy_ extends Proxy<P>> |
bindPresenter(Class<P> presenterImpl,
Class<V> view,
Class<? extends V> viewImpl,
Class<Proxy_> proxy)
Convenience method for binding a singleton presenter with its view and its
proxy, when using automatically generated proxy classes.
|
protected <P extends Presenter<?,?>,Proxy_ extends Proxy<P>> |
bindPresenterCustomProxy(Class<P> presenter,
Class<? extends P> presenterImpl,
Class<Proxy_> proxy,
Class<? extends Proxy_> proxyImpl)
Convenience method for binding a singleton presenter with its proxy, when
using custom-made proxy classes and non-singleton views.
|
protected <P extends Presenter<?,?>,V extends View,Proxy_ extends Proxy<P>> |
bindPresenterCustomProxy(Class<P> presenter,
Class<? extends P> presenterImpl,
Class<V> view,
Class<? extends V> viewImpl,
Class<Proxy_> proxy,
Class<? extends Proxy_> proxyImpl)
Convenience method for binding a singleton presenter with its view and its
proxy, when using custom-made proxy classes.
|
protected <P extends Presenter<?,?>,Proxy_ extends Proxy<P>> |
bindPresenterCustomProxy(Class<P> presenterImpl,
Class<Proxy_> proxy,
Class<? extends Proxy_> proxyImpl)
Convenience method for binding a singleton presenter with its proxy, when
using custom-made proxy classes and non-singleton views.
|
protected <P extends Presenter<?,?>,V extends View,Proxy_ extends Proxy<P>> |
bindPresenterCustomProxy(Class<P> presenterImpl,
Class<V> view,
Class<? extends V> viewImpl,
Class<Proxy_> proxy,
Class<? extends Proxy_> proxyImpl)
Convenience method for binding a singleton presenter with its view and its
proxy, when using custom-made proxy classes.
|
protected <P extends PresenterWidget<?>,V extends View> |
bindPresenterWidget(Class<P> presenter,
Class<? extends P> presenterImpl,
Class<V> view,
Class<? extends V> viewImpl)
Convenience method for binding a non-singleton
PresenterWidget with
its View . |
protected <P extends PresenterWidget<?>,V extends View> |
bindPresenterWidget(Class<P> presenterImpl,
Class<V> view,
Class<? extends V> viewImpl)
Convenience method for binding a non-singleton
PresenterWidget with
its View . |
protected <P,V> void |
bindPresenterWidgetFactory(Class<P> presenterFactory,
Class<? extends P> presenterFactoryImpl,
Class<V> viewFactory,
Class<? extends V> viewFactoryImpl)
Convenience method for binding a non-singleton
PresenterWidget that
is created via a factory to its View , which is also created via a
factory. |
protected <V extends View> |
bindSharedView(Class<V> view,
Class<? extends V> viewImpl)
Bind a view interface to its implementation in a non-singleton manner.
|
protected <P extends PresenterWidget<?>,V extends View> |
bindSingletonPresenterWidget(Class<P> presenter,
Class<? extends P> presenterImpl,
Class<V> view,
Class<? extends V> viewImpl)
Convenience method for binding a singleton
PresenterWidget with its
View . |
protected <P extends PresenterWidget<?>,V extends View> |
bindSingletonPresenterWidget(Class<P> presenterImpl,
Class<V> view,
Class<? extends V> viewImpl)
Convenience method for binding a singleton
PresenterWidget with its
View . |
bind, bind, bind, bindConstant, binder, configure, configure, install, requestStaticInjection
protected <P extends Presenter<?,?>,Proxy_ extends Proxy<P>> void bindPresenter(Class<P> presenter, Class<? extends P> presenterImpl, Class<Proxy_> proxy)
bindSharedView(java.lang.Class<V>, java.lang.Class<? extends V>)
method. If the view class is use only by one
presenter, you should consider using
bindPresenter(Class, Class, Class, Class, Class)
instead.protected <P extends Presenter<?,?>,V extends View,Proxy_ extends Proxy<P>> void bindPresenter(Class<P> presenter, Class<? extends P> presenterImpl, Class<V> view, Class<? extends V> viewImpl, Class<Proxy_> proxy)
P
- The Presenter
interface type.V
- The View
interface type.Proxy_
- The Proxy
type.presenter
- The Presenter
interface.presenterImpl
- The Presenter
implementation (a singleton).view
- The View
interface.viewImpl
- The View
implementation (a singleton).proxy
- The Proxy
interface, which will lead to an
automatically generated proxy classes.protected <P extends Presenter<?,?>,Proxy_ extends Proxy<P>> void bindPresenter(Class<P> presenterImpl, Class<Proxy_> proxy)
bindSharedView(java.lang.Class<V>, java.lang.Class<? extends V>)
method. If the view class is use only by one
presenter, you should consider using
bindPresenter(Class, Class, Class, Class)
instead.protected <P extends Presenter<?,?>,V extends View,Proxy_ extends Proxy<P>> void bindPresenter(Class<P> presenterImpl, Class<V> view, Class<? extends V> viewImpl, Class<Proxy_> proxy)
P
- The Presenter
class type.V
- The View
interface type.Proxy_
- The Proxy
type.presenterImpl
- The Presenter
implementation (a singleton).view
- The View
interface.viewImpl
- The View
implementation (a singleton).proxy
- The Proxy
interface, which will lead to an
automatically generated proxy classes.protected <P extends Presenter<?,?>,Proxy_ extends Proxy<P>> void bindPresenterCustomProxy(Class<P> presenter, Class<? extends P> presenterImpl, Class<Proxy_> proxy, Class<? extends Proxy_> proxyImpl)
bindSharedView(java.lang.Class<V>, java.lang.Class<? extends V>)
method. If the view class is use only by one
presenter, you should consider using
bindPresenterCustomProxy(Class, Class, Class, Class, Class, Class)
instead.protected <P extends Presenter<?,?>,V extends View,Proxy_ extends Proxy<P>> void bindPresenterCustomProxy(Class<P> presenter, Class<? extends P> presenterImpl, Class<V> view, Class<? extends V> viewImpl, Class<Proxy_> proxy, Class<? extends Proxy_> proxyImpl)
P
- The Presenter
interface type.V
- The View
interface type.Proxy_
- The Proxy
type.presenter
- The Presenter
interface.presenterImpl
- The Presenter
implementation (a singleton).view
- The View
interface.viewImpl
- The View
implementation (a singleton).proxy
- The Proxy
interface.proxyImpl
- The Proxy
implementation (a singleton).protected <P extends Presenter<?,?>,Proxy_ extends Proxy<P>> void bindPresenterCustomProxy(Class<P> presenterImpl, Class<Proxy_> proxy, Class<? extends Proxy_> proxyImpl)
bindSharedView(java.lang.Class<V>, java.lang.Class<? extends V>)
method. If the view class is used only by one
presenter, you should consider using
bindPresenterCustomProxy(Class, Class, Class, Class, Class)
instead.protected <P extends Presenter<?,?>,V extends View,Proxy_ extends Proxy<P>> void bindPresenterCustomProxy(Class<P> presenterImpl, Class<V> view, Class<? extends V> viewImpl, Class<Proxy_> proxy, Class<? extends Proxy_> proxyImpl)
P
- The Presenter
class type.V
- The View
interface type.Proxy_
- The Proxy
type.presenterImpl
- The Presenter
implementation (a singleton).view
- The View
interface.viewImpl
- The View
implementation (a singleton).proxy
- The Proxy
interface.proxyImpl
- The Proxy
implementation (a singleton).protected <P extends PresenterWidget<?>,V extends View> void bindPresenterWidget(Class<P> presenter, Class<? extends P> presenterImpl, Class<V> view, Class<? extends V> viewImpl)
PresenterWidget
with
its View
.P
- The PresenterWidget
interface type.V
- The View
interface type.presenter
- The PresenterWidget
interface.presenterImpl
- The PresenterWidget
implementation (NOT a
singleton).view
- The View
interface.viewImpl
- The View
implementation (NOT a singleton).protected <P extends PresenterWidget<?>,V extends View> void bindPresenterWidget(Class<P> presenterImpl, Class<V> view, Class<? extends V> viewImpl)
PresenterWidget
with
its View
.P
- The PresenterWidget
class type.V
- The View
interface type.presenterImpl
- The PresenterWidget
implementation (NOT a
singleton).view
- The View
interface.viewImpl
- The View
implementation (NOT a singleton).protected <P,V> void bindPresenterWidgetFactory(Class<P> presenterFactory, Class<? extends P> presenterFactoryImpl, Class<V> viewFactory, Class<? extends V> viewFactoryImpl)
PresenterWidget
that
is created via a factory to its View
, which is also created via a
factory.P
- The type of the PresenterWidget
factory.V
- The type of the View
factory.presenterFactory
- The interface to the PresenterWidget
factory.presenterFactoryImpl
- The implementation of the
PresenterWidget
factory.viewFactory
- The interface to the View
factory.viewFactoryImpl
- The implementation of the View
factory.protected <V extends View> void bindSharedView(Class<V> view, Class<? extends V> viewImpl)
bindPresenter(Class, Class)
,
bindPresenter(Class, Class, Class)
,
bindPresenterCustomProxy(Class, Class, Class)
, or
bindPresenterCustomProxy(Class, Class, Class, Class)
, If the view
class is use only by one presenter, you should consider using
bindPresenter(Class, Class, Class, Class, Class)
instead.protected <P extends PresenterWidget<?>,V extends View> void bindSingletonPresenterWidget(Class<P> presenter, Class<? extends P> presenterImpl, Class<V> view, Class<? extends V> viewImpl)
PresenterWidget
with its
View
.
Important! If you want to use the same PresenterWidget
in
many different places, you should consider making it non-singleton with
bindPresenterWidget(java.lang.Class<P>, java.lang.Class<? extends P>, java.lang.Class<V>, java.lang.Class<? extends V>)
. It is possible to use the same singleton
PresenterWidget
in different presenters, as long as these are not
simultaneously visible. Also, if you do this, you must make sure to set the
singleton presenter widget as content in its containing presenter
PresenterWidget.onReveal()
and to remove it in the
PresenterWidget.onHide()
.P
- The PresenterWidget
interface type.V
- The View
interface type.presenter
- The PresenterWidget
interface (a singleton).presenterImpl
- The PresenterWidget
implementation (a
singleton).view
- The View
interface.viewImpl
- The View
implementation (a singleton).protected <P extends PresenterWidget<?>,V extends View> void bindSingletonPresenterWidget(Class<P> presenterImpl, Class<V> view, Class<? extends V> viewImpl)
PresenterWidget
with its
View
.
Important! If you want to use the same PresenterWidget
in
many different places, you should consider making it non-singleton with
bindPresenterWidget(java.lang.Class<P>, java.lang.Class<? extends P>, java.lang.Class<V>, java.lang.Class<? extends V>)
. It is possible to use the same singleton
PresenterWidget
in different presenters, as long as these are not
simultaneously visible. Also, if you do this, you must make sure to set the
singleton presenter widget as content in its containing presenter
PresenterWidget.onReveal()
and to remove it in the
PresenterWidget.onHide()
.P
- The PresenterWidget
class type.V
- The View
interface type.presenterImpl
- The PresenterWidget
implementation (a
singleton).view
- The View
interface.viewImpl
- The View
implementation (a singleton).Copyright © 2010-2014 ArcBees. All Rights Reserved.