Silk DI 0.6


se.jbee.inject.util
Class Inject.SourcedInjector

Object
  extended by se.jbee.inject.util.Inject.SourcedInjector
All Implemented Interfaces:
Injector
Enclosing class:
Inject

public static final class Inject.SourcedInjector
extends Object
implements Injector

The default Injector that gets the initial Injectrons from a InjectronSource.

Author:
Jan Bernitt (jan@jbee.se)

Constructor Summary
Inject.SourcedInjector(InjectronSource source)
           
 
Method Summary
<T> T
resolve(Dependency<T> dependency)
           
 String toString()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Inject.SourcedInjector

Inject.SourcedInjector(InjectronSource source)
Method Detail

resolve

public <T> T resolve(Dependency<T> dependency)
Specified by:
resolve in interface Injector
Returns:
Resolves the instance appropriate for the given Dependency. In case no such instance is known an exception is thrown. The null-reference will never be returned.

toString

public String toString()
Overrides:
toString in class Object

Silk DI 0.6