net.customware.gwt.presenter.client.gin
Class AbstractPresenterModule

java.lang.Object
  extended by com.google.gwt.inject.client.AbstractGinModule
      extended by 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


Constructor Summary
AbstractPresenterModule()
           
 
Method Summary
protected
<D extends Display>
void
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
<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.
 
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
 

Constructor Detail

AbstractPresenterModule

public AbstractPresenterModule()
Method Detail

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.