Class SupplierThreadLocalTypeImpl<T>
- java.lang.Object
-
- net.officefloor.compile.impl.supplier.SupplierThreadLocalTypeImpl<T>
-
- All Implemented Interfaces:
OptionalThreadLocalReceiver,SupplierThreadLocalType
public class SupplierThreadLocalTypeImpl<T> extends java.lang.Object implements SupplierThreadLocalType
SupplierThreadLocalTypeimplementation.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSupplierThreadLocalTypeImpl.SupplierThreadLocalImpl<T>SupplierThreadLocalimplementation.
-
Constructor Summary
Constructors Constructor Description SupplierThreadLocalTypeImpl(java.lang.String qualifier, java.lang.Class<?> objectType)Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>getObjectType()Obtains the type ofObjectrequired.java.lang.StringgetQualifier()Obtains the possible qualifier for the requiredManagedObject.SupplierThreadLocal<T>getSupplierThreadLocal()Obtains theSupplierThreadLocal.voidsetOptionalThreadLocal(OptionalThreadLocal<?> optionalThreadLocal)Receives theOptionalThreadLocal.
-
-
-
Method Detail
-
getSupplierThreadLocal
public SupplierThreadLocal<T> getSupplierThreadLocal()
Obtains theSupplierThreadLocal.- Returns:
SupplierThreadLocal.
-
getQualifier
public java.lang.String 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
public java.lang.Class<?> getObjectType()
Description copied from interface:SupplierThreadLocalTypeObtains the type ofObjectrequired.- Specified by:
getObjectTypein interfaceSupplierThreadLocalType- Returns:
- Type of
Objectrequired.
-
setOptionalThreadLocal
public void setOptionalThreadLocal(OptionalThreadLocal<?> optionalThreadLocal)
Description copied from interface:OptionalThreadLocalReceiverReceives theOptionalThreadLocal.- Specified by:
setOptionalThreadLocalin interfaceOptionalThreadLocalReceiver- Parameters:
optionalThreadLocal-OptionalThreadLocal.
-
-