Silk DI 0.6


se.jbee.inject
Interface Injectron<T>

All Superinterfaces:
Resourced<T>

public interface Injectron<T>
extends Resourced<T>

A kind of singleton for a Resource inside a Injector.

Author:
Jan Bernitt (jan@jbee.se)

Method Summary
 Expiry getExpiry()
           
 Source getSource()
           
 T instanceFor(Dependency<? super T> dependency)
           
 
Methods inherited from interface se.jbee.inject.Resourced
getResource
 

Method Detail

getSource

Source getSource()
Returns:
The Source that Injection had been created from (e.g. did define the bind).

instanceFor

T instanceFor(Dependency<? super T> dependency)
Returns:
The instance created or resolved for the given Dependency.

getExpiry

Expiry getExpiry()
Returns:
The frequency in which this injectron's Resource expires.

Silk DI 0.6