Silk DI 0.6


se.jbee.inject.bind
Class BinderModule

Object
  extended by se.jbee.inject.bind.Binder
      extended by se.jbee.inject.bind.Binder.TargetedBinder
          extended by se.jbee.inject.bind.Binder.ScopedBinder
              extended by se.jbee.inject.bind.Binder.RootBinder
                  extended by se.jbee.inject.bind.InitializedBinder
                      extended by se.jbee.inject.bind.BinderModule
All Implemented Interfaces:
Bundle, Module
Direct Known Subclasses:
ExtensionModule, MacroModule

public abstract class BinderModule
extends InitializedBinder
implements Bundle, Module

The default utility Module almost always used. A BinderModule is also a Bundle so it should be used and installed as such. It will than Bundle.bootstrap(Bootstrapper) itself as a module.

Author:
Jan Bernitt (jan@jbee.se)

Nested Class Summary
 
Nested classes/interfaces inherited from class se.jbee.inject.bind.Binder
Binder.ConfigBinder<T>, Binder.InspectBinder, Binder.RootBinder, Binder.ScopedBinder, Binder.TargetedBinder, Binder.TypedBinder<T>, Binder.TypedElementBinder<E>
 
Field Summary
 
Fields inherited from class se.jbee.inject.bind.Binder
root
 
Constructor Summary
protected BinderModule()
           
protected BinderModule(Scope inital)
           
protected BinderModule(Source source)
           
 
Method Summary
 void bootstrap(Bootstrapper bootstrap)
           
protected abstract  void declare()
           
 void declare(Bindings bindings)
           
 String toString()
           
 
Methods inherited from class se.jbee.inject.bind.InitializedBinder
bind, init
 
Methods inherited from class se.jbee.inject.bind.Binder.RootBinder
asDefault, on, per, provide, require, require
 
Methods inherited from class se.jbee.inject.bind.Binder.ScopedBinder
bind, injectingInto, injectingInto, injectingInto, injectingInto, injectingInto
 
Methods inherited from class se.jbee.inject.bind.Binder.TargetedBinder
in, inPackageAndSubPackagesOf, inPackageOf, inSubPackagesOf, within, within, within, within, within
 
Methods inherited from class se.jbee.inject.bind.Binder
arraybind, autobind, autobind, bind, bind, bind, bind, bind, configbind, configbind, construct, construct, construct, create, implicit, implicitBindToConstructor, implicitBindToConstructor, multibind, multibind, multibind, multibind, multibind, starbind, with
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BinderModule

protected BinderModule()

BinderModule

protected BinderModule(Scope inital)

BinderModule

protected BinderModule(Source source)
Method Detail

bootstrap

public final void bootstrap(Bootstrapper bootstrap)
Specified by:
bootstrap in interface Bundle
Parameters:
bootstrap - The Bootstrapper this Bundle should install itself to.

declare

public final void declare(Bindings bindings)
Specified by:
declare in interface Module
Parameters:
bindings - use to declare made bound within this Module.

toString

public String toString()
Overrides:
toString in class Object

declare

protected abstract void declare()
See Also:
Module.declare(Bindings)

Silk DI 0.6