Silk DI 0.6


se.jbee.inject.bootstrap
Class ModularBootstrapperBundle<M>

Object
  extended by se.jbee.inject.bootstrap.ModularBootstrapperBundle<M>
All Implemented Interfaces:
Bootstrapper.ModularBootstrapper<M>, ModularBundle<M>

public abstract class ModularBootstrapperBundle<M>
extends Object
implements ModularBundle<M>, Bootstrapper.ModularBootstrapper<M>

The default utility base class for ModularBundles.

Author:
Jan Bernitt (jan@jbee.se)

Constructor Summary
ModularBootstrapperBundle()
           
 
Method Summary
protected abstract  void bootstrap()
           
 void bootstrap(Bootstrapper.ModularBootstrapper<M> bootstrap)
           
 void install(Class<? extends Bundle> bundle, M module)
          Installs the bundle within the given module.
 String toString()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModularBootstrapperBundle

public ModularBootstrapperBundle()
Method Detail

bootstrap

public void bootstrap(Bootstrapper.ModularBootstrapper<M> bootstrap)
Specified by:
bootstrap in interface ModularBundle<M>
Parameters:
bootstrap - the Bootstrapper.ModularBootstrapper this bundle should install itself in.

install

public void install(Class<? extends Bundle> bundle,
                    M module)
Description copied from interface: Bootstrapper.ModularBootstrapper
Installs the bundle within the given module. If the module passed hasn't been Bootstrapper.install(Enum...)ed the call will be ignored.

Specified by:
install in interface Bootstrapper.ModularBootstrapper<M>

toString

public String toString()
Overrides:
toString in class Object

bootstrap

protected abstract void bootstrap()

Silk DI 0.6