Silk DI 0.6


se.jbee.inject.util
Class Inject

Object
  extended by se.jbee.inject.util.Inject

public final class Inject
extends Object

Utility to create/use the core containers Inject.SourcedInjector and Injectron.

Author:
Jan Bernitt (jan@jbee.se)

Nested Class Summary
static class Inject.SourcedInjector
          The default Injector that gets the initial Injectrons from a InjectronSource.
 
Method Summary
static
<T> Injectable<T>
asInjectable(Supplier<? extends T> supplier, Injector injector)
           
static Injector from(InjectronSource source)
           
static
<T> Injectron<T>
injectron(Injectable<T> injectable, Resource<T> resource, Demand<T> demand, Expiry expiry, Repository repository, Source source)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

from

public static Injector from(InjectronSource source)

asInjectable

public static <T> Injectable<T> asInjectable(Supplier<? extends T> supplier,
                                             Injector injector)

injectron

public static <T> Injectron<T> injectron(Injectable<T> injectable,
                                         Resource<T> resource,
                                         Demand<T> demand,
                                         Expiry expiry,
                                         Repository repository,
                                         Source source)

Silk DI 0.6