Silk DI 0.6


se.jbee.inject
Interface Supplier<T>

Type Parameters:
T - The type of the instance being resolved
All Known Subinterfaces:
Parameterization<T>
All Known Implementing Classes:
SuppliedBy.ArrayBridgeSupplier

public interface Supplier<T>

A Supplier is a source or factory for specific instances.

Author:
Jan Bernitt (jan@jbee.se)

Method Summary
 T supply(Dependency<? super T> dependency, Injector injector)
          This Supplier is asked to supply the instance that should be used the given Dependency.
 

Method Detail

supply

T supply(Dependency<? super T> dependency,
         Injector injector)
This Supplier is asked to supply the instance that should be used the given Dependency.

Parameters:
injector - The Injector is used to resolve Dependencys during a possible object creation of the returned instance.
Returns:
the instance created or resolved.

Silk DI 0.6