Silk DI 0.6


se.jbee.inject
Interface Repository


public interface Repository

Manages the already created instances.

Author:
Jan Bernitt (jan@jbee.se)

Method Summary
<T> T
serve(Demand<T> demand, Injectable<T> injectable)
           
 

Method Detail

serve

<T> T serve(Demand<T> demand,
            Injectable<T> injectable)
Returns:
Existing instances are returned, non-existing are received from the given Injectable and stocked in the scope of this Repository (forever if it is an application wide singleton).

Silk DI 0.6