Silk DI 0.6


se.jbee.inject.bootstrap
Class SuppliedBy

Object
  extended by se.jbee.inject.bootstrap.SuppliedBy

public final class SuppliedBy
extends Object

Utility as a factory to create different kinds of SuppliedBy.ArrayBridgeSuppliers.

Author:
Jan Bernitt (jan@jbee.se)

Nested Class Summary
static class SuppliedBy.ArrayBridgeSupplier<T>
           
 
Field Summary
static Supplier<List<?>> LIST_BRIDGE
           
static Factory<Logger> LOGGER
           
(package private) static Object[] NO_ARGS
           
static Supplier<Provider<?>> PROVIDER_BRIDGE
           
static Supplier<Set<?>> SET_BRIDGE
           
 
Method Summary
static
<T,C> Supplier<T>
configuration(Type<T> type, Configuring<C> configuration)
           
static
<T> Supplier<T>
constant(T constant)
           
static
<T> Supplier<T>
costructor(Constructible<T> constructible)
           
static
<T> Supplier<T>
dependency(Dependency<T> dependency)
           
static
<E> Supplier<E[]>
elements(Type<E[]> arrayType, Parameter<? extends E>[] elements)
           
static
<T> Supplier<T>
factory(Factory<T> factory)
           
static
<T> Supplier<T>
instance(Instance<T> instance)
           
static
<T> Provider<T>
lazyProvider(Dependency<T> dependency, Injector context)
           
static
<T> Supplier<T>
method(Producible<T> producible)
           
static
<T> Supplier<T>
parametrizedInstance(Instance<T> instance)
           
static
<T> Supplier<T>
reference(Class<? extends Supplier<? extends T>> type)
           
static
<T> Supplier<T>
required()
           
static
<T> T
resolve(Dependency<?> parent, Injector injector, Parameterization<T> param)
           
static
<T> Object[]
resolve(Dependency<? super T> parent, Injector injector, Parameterization<?>[] params)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_ARGS

static final Object[] NO_ARGS

PROVIDER_BRIDGE

public static final Supplier<Provider<?>> PROVIDER_BRIDGE

LIST_BRIDGE

public static final Supplier<List<?>> LIST_BRIDGE

SET_BRIDGE

public static final Supplier<Set<?>> SET_BRIDGE

LOGGER

public static final Factory<Logger> LOGGER
Method Detail

required

public static <T> Supplier<T> required()

constant

public static <T> Supplier<T> constant(T constant)

reference

public static <T> Supplier<T> reference(Class<? extends Supplier<? extends T>> type)

elements

public static <E> Supplier<E[]> elements(Type<E[]> arrayType,
                                         Parameter<? extends E>[] elements)

instance

public static <T> Supplier<T> instance(Instance<T> instance)

dependency

public static <T> Supplier<T> dependency(Dependency<T> dependency)

parametrizedInstance

public static <T> Supplier<T> parametrizedInstance(Instance<T> instance)

method

public static <T> Supplier<T> method(Producible<T> producible)

costructor

public static <T> Supplier<T> costructor(Constructible<T> constructible)

factory

public static <T> Supplier<T> factory(Factory<T> factory)

configuration

public static <T,C> Supplier<T> configuration(Type<T> type,
                                              Configuring<C> configuration)

lazyProvider

public static <T> Provider<T> lazyProvider(Dependency<T> dependency,
                                           Injector context)

resolve

public static <T> Object[] resolve(Dependency<? super T> parent,
                                   Injector injector,
                                   Parameterization<?>[] params)

resolve

public static <T> T resolve(Dependency<?> parent,
                            Injector injector,
                            Parameterization<T> param)

Silk DI 0.6