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
SupplierThreadLocalType
implementation.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SupplierThreadLocalTypeImpl.SupplierThreadLocalImpl<T>
SupplierThreadLocal
implementation.
-
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 ofObject
required.java.lang.String
getQualifier()
Obtains the possible qualifier for the requiredManagedObject
.SupplierThreadLocal<T>
getSupplierThreadLocal()
Obtains theSupplierThreadLocal
.void
setOptionalThreadLocal(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:SupplierThreadLocalType
Obtains the possible qualifier for the requiredManagedObject
.- Specified by:
getQualifier
in interfaceSupplierThreadLocalType
- Returns:
- Qualifier for the required
ManagedObject
. May benull
.
-
getObjectType
public java.lang.Class<?> getObjectType()
Description copied from interface:SupplierThreadLocalType
Obtains the type ofObject
required.- Specified by:
getObjectType
in interfaceSupplierThreadLocalType
- Returns:
- Type of
Object
required.
-
setOptionalThreadLocal
public void setOptionalThreadLocal(OptionalThreadLocal<?> optionalThreadLocal)
Description copied from interface:OptionalThreadLocalReceiver
Receives theOptionalThreadLocal
.- Specified by:
setOptionalThreadLocal
in interfaceOptionalThreadLocalReceiver
- Parameters:
optionalThreadLocal
-OptionalThreadLocal
.
-
-