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)
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.