se.jbee.inject.bootstrap
Class SuppliedBy
Object
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)
| Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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)