Class SupplierThreadLocalTypeImpl<T>
java.lang.Object
net.officefloor.compile.impl.supplier.SupplierThreadLocalTypeImpl<T>
- All Implemented Interfaces:
OptionalThreadLocalReceiver,SupplierThreadLocalType
SupplierThreadLocalType implementation.- Author:
- Daniel Sagenschneider
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSupplierThreadLocalTypeImpl(String qualifier, Class<?> objectType) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionClass<?>Obtains the type ofObjectrequired.Obtains the possible qualifier for the requiredManagedObject.Obtains theSupplierThreadLocal.voidsetOptionalThreadLocal(OptionalThreadLocal<?> optionalThreadLocal) Receives theOptionalThreadLocal.
-
Constructor Details
-
SupplierThreadLocalTypeImpl
Instantiate.- Parameters:
qualifier- Qualifier. May benull.objectType- Object type.
-
-
Method Details
-
getSupplierThreadLocal
Obtains theSupplierThreadLocal.- Returns:
SupplierThreadLocal.
-
getQualifier
Description copied from interface:SupplierThreadLocalTypeObtains the possible qualifier for the requiredManagedObject.- Specified by:
getQualifierin interfaceSupplierThreadLocalType- Returns:
- Qualifier for the required
ManagedObject. May benull.
-
getObjectType
Description copied from interface:SupplierThreadLocalTypeObtains the type ofObjectrequired.- Specified by:
getObjectTypein interfaceSupplierThreadLocalType- Returns:
- Type of
Objectrequired.
-
setOptionalThreadLocal
Description copied from interface:OptionalThreadLocalReceiverReceives theOptionalThreadLocal.- Specified by:
setOptionalThreadLocalin interfaceOptionalThreadLocalReceiver- Parameters:
optionalThreadLocal-OptionalThreadLocal.
-