Class SpringArgumentManagedObjectSource.SpringArgumentManagedObject
java.lang.Object
net.officefloor.spring.starter.rest.argument.SpringArgumentManagedObjectSource.SpringArgumentManagedObject
- All Implemented Interfaces:
CoordinatingManagedObject<SpringArgumentManagedObjectSource.DependencyKeys>,ManagedObject
- Enclosing class:
- SpringArgumentManagedObjectSource
public class SpringArgumentManagedObjectSource.SpringArgumentManagedObject
extends Object
implements CoordinatingManagedObject<SpringArgumentManagedObjectSource.DependencyKeys>
ManagedObject for the Spring argument.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObtains the object being managed.voidLoads the Objects of theManagedObjectinstances to be referenced by thisCoordinatingManagedObject.
-
Constructor Details
-
SpringArgumentManagedObject
public SpringArgumentManagedObject()
-
-
Method Details
-
loadObjects
public void loadObjects(ObjectRegistry<SpringArgumentManagedObjectSource.DependencyKeys> registry) throws Throwable Description copied from interface:CoordinatingManagedObjectLoads the Objects of the
ManagedObjectinstances to be referenced by thisCoordinatingManagedObject.References to the loaded Objects must be released on recycling the
ManagedObject.- Specified by:
loadObjectsin interfaceCoordinatingManagedObject<SpringArgumentManagedObjectSource.DependencyKeys>- Parameters:
registry- Registry of the Objects for theManagedObjectinstances.- Throws:
Throwable- Should thisCoordinatingManagedObjectfail to load theManagedObject.
-
getObject
Description copied from interface:ManagedObjectObtains the object being managed.- Specified by:
getObjectin interfaceManagedObject- Returns:
- Object being managed.
- Throws:
Throwable- Indicating failed to obtain the object for use.
-