Silk DI 0.6


se.jbee.inject.util
Interface Provider<T>


public interface Provider<T>

A indirection that resolves the instance lazily when provide() is invoked. This is mainly used to allow the injection and usage of instances that have a more unstable scope into an instance of a more stable scope. In contrast to other DI-frameworks this is no core concept. To enable Providers install the them through buildin-Bundle. But it is also very easy to use another similar provider interface by installing such a bridge Supplier.

Author:
Jan Bernitt (jan@jbee.se)

Method Summary
 T provide()
           
 

Method Detail

provide

T provide()
Returns:
the current instance.

Silk DI 0.6