Interface SupplierCompileContext
- All Known Subinterfaces:
SupplierCompileConfiguration,SupplierCompletionContext,SupplierSourceContext
- All Known Implementing Classes:
SupplierSourceContextImpl
public interface SupplierCompileContext
Compile context for the
SupplierSource.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddInternalSupplier(InternalSupplier internalSupplier) Adds anInternalSupplier.<D extends Enum<D>,F extends Enum<F>>
SuppliedManagedObjectSourceaddManagedObjectSource(String qualifier, Class<?> type, ManagedObjectSource<D, F> managedObjectSource) Adds a potentialManagedObjectSourcefor dependency injection.<T> SupplierThreadLocal<T>addSupplierThreadLocal(String qualifier, Class<? extends T> type) Adds aSupplierThreadLocal.voidaddThreadSynchroniser(ThreadSynchroniserFactory threadSynchroniserFactory) Adds aThreadSynchroniser.
-
Method Details
-
addSupplierThreadLocal
Adds a
SupplierThreadLocal.This allows integrating third party libraries that require
ThreadLocalaccess to objects.- Type Parameters:
T- Type of object to be returned from theSupplierThreadLocal.- Parameters:
qualifier- Qualifier for theAutoWire. May benullto match only on type.type- Type forAutoWire.- Returns:
SupplierThreadLocalto obtain the object.
-
addThreadSynchroniser
Adds a
ThreadSynchroniser.This enables keeping the
ThreadLocalinstances of the integrating third party library consistent across theThreadinstances.- Parameters:
threadSynchroniserFactory-ThreadSynchroniserFactory.
-
addManagedObjectSource
<D extends Enum<D>,F extends Enum<F>> SuppliedManagedObjectSource addManagedObjectSource(String qualifier, Class<?> type, ManagedObjectSource<D, F> managedObjectSource) Adds a potentialManagedObjectSourcefor dependency injection.- Type Parameters:
D- Dependency type keys.F-Flowtype keys.- Parameters:
qualifier- Qualifier for theManagedObjectSource. May benullto match only on type.type- Type of theManagedObjectSource.managedObjectSource-ManagedObjectSource.- Returns:
SuppliedManagedObjectSource.
-
addInternalSupplier
Adds anInternalSupplier.- Parameters:
internalSupplier-InternalSupplier.
-