net.customware.gwt.presenter.client.gin
Class AbstractPresenterModule
java.lang.Object
com.google.gwt.inject.client.AbstractGinModule
net.customware.gwt.presenter.client.gin.AbstractPresenterModule
- All Implemented Interfaces:
- com.google.gwt.inject.client.GinModule
public abstract class AbstractPresenterModule
- extends com.google.gwt.inject.client.AbstractGinModule
Method Summary |
protected
|
bindDisplay(java.lang.Class<D> display,
java.lang.Class<? extends D> displayImpl)
Convenience method for binding a display implementation. |
protected
<T> com.google.gwt.inject.client.binder.GinLinkedBindingBuilder<T> |
|
bindNamed(java.lang.Class<T> type,
java.lang.String named)
Convenience method for binding a type to a Named attribute. |
protected
|
bindPresenter(java.lang.Class<? extends Presenter> presenter,
java.lang.Class<D> display,
java.lang.Class<? extends D> displayImpl)
Convenience method for binding a presenter as well as it's display. |
Methods inherited from class com.google.gwt.inject.client.AbstractGinModule |
bind, bind, bindConstant, configure, configure, install, requestStaticInjection |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractPresenterModule
public AbstractPresenterModule()
bindPresenter
protected <D extends Display> void bindPresenter(java.lang.Class<? extends Presenter> presenter,
java.lang.Class<D> display,
java.lang.Class<? extends D> displayImpl)
- Convenience method for binding a presenter as well as it's display.
- Type Parameters:
D
- The display type.- Parameters:
presenter
- The presenter.display
- The display type.displayImpl
- The display implementation.
bindDisplay
protected <D extends Display> void bindDisplay(java.lang.Class<D> display,
java.lang.Class<? extends D> displayImpl)
- Convenience method for binding a display implementation.
- Type Parameters:
D
- - Parameters:
display
- displayImpl
-
bindNamed
protected <T> com.google.gwt.inject.client.binder.GinLinkedBindingBuilder<T> bindNamed(java.lang.Class<T> type,
java.lang.String named)
- Convenience method for binding a type to a
Named
attribute. Use
it something like this:
bindNamed( MyType.class, "Foo" ).to( MyImplementation.class );
- Type Parameters:
T
- The type.- Parameters:
type
- The type.named
- The string to name with.
- Returns:
- the binding builder.
Copyright © 2009 customware.net. All Rights Reserved.