Silk DI 0.6


se.jbee.inject.bootstrap
Class SuppliedBy.ArrayBridgeSupplier<T>

Object
  extended by se.jbee.inject.bootstrap.SuppliedBy.ArrayBridgeSupplier<T>
All Implemented Interfaces:
Supplier<T>
Enclosing class:
SuppliedBy

public abstract static class SuppliedBy.ArrayBridgeSupplier<T>
extends Object
implements Supplier<T>


Constructor Summary
SuppliedBy.ArrayBridgeSupplier()
           
 
Method Summary
(package private) abstract
<E> T
bridge(E[] elements)
           
 T supply(Dependency<? super T> dependency, Injector injector)
          This Supplier is asked to supply the instance that should be used the given Dependency.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuppliedBy.ArrayBridgeSupplier

SuppliedBy.ArrayBridgeSupplier()
Method Detail

supply

public final T supply(Dependency<? super T> dependency,
                      Injector injector)
Description copied from interface: Supplier
This Supplier is asked to supply the instance that should be used the given Dependency.

Specified by:
supply in interface Supplier<T>
injector - The Injector is used to resolve Dependencys during a possible object creation of the returned instance.
Returns:
the instance created or resolved.

bridge

abstract <E> T bridge(E[] elements)

Silk DI 0.6