Package net.officefloor.spring.extension
Interface SpringSupplierExtensionContext
-
- All Known Subinterfaces:
AfterSpringLoadSupplierExtensionContext
,BeforeSpringLoadSupplierExtensionContext
public interface SpringSupplierExtensionContext
Context for aSpringSupplierExtension
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addThreadSynchroniser(ThreadSynchroniserFactory threadSynchroniserFactory)
Registers aThreadSynchroniserFactory
.AvailableType[]
getAvailableTypes()
Obtains theAvailableType
instances fromOfficeFloor
.<O> O
getManagedObject(java.lang.String qualifier, java.lang.Class<? extends O> objectType)
Obtains the object source from aManagedObject
.
-
-
-
Method Detail
-
getManagedObject
<O> O getManagedObject(java.lang.String qualifier, java.lang.Class<? extends O> objectType) throws java.lang.Exception
Obtains the object source from aManagedObject
.- Type Parameters:
O
- Object type.- Parameters:
qualifier
- Qualifier. May benull
.objectType
- Object type required.- Returns:
- Object from the
ManagedObject
. - Throws:
java.lang.Exception
- If fails to source theManagedObject
.
-
addThreadSynchroniser
void addThreadSynchroniser(ThreadSynchroniserFactory threadSynchroniserFactory)
Registers aThreadSynchroniserFactory
.- Parameters:
threadSynchroniserFactory
-ThreadSynchroniserFactory
.
-
getAvailableTypes
AvailableType[] getAvailableTypes()
Obtains theAvailableType
instances fromOfficeFloor
.- Returns:
AvailableType
instances fromOfficeFloor
.
-
-