Class ClassManagedObject
java.lang.Object
net.officefloor.plugin.managedobject.clazz.ClassManagedObject
- All Implemented Interfaces:
ContextAwareManagedObject,CoordinatingManagedObject<Indexed>,ManagedObject
public class ClassManagedObject
extends Object
implements ContextAwareManagedObject, CoordinatingManagedObject<Indexed>
CoordinatingManagedObject to dependency inject the Object
instance and make it available for use.- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObtains the object being managed.voidloadObjects(ObjectRegistry<Indexed> registry) Loads the Objects of theManagedObjectinstances to be referenced by thisCoordinatingManagedObject.voidProvides theManagedObjectContextto theManagedObject.
-
Constructor Details
-
ClassManagedObject
Instantiate.- Parameters:
objectFactory-ClassObjectFactory.
-
-
Method Details
-
setManagedObjectContext
Description copied from interface:ContextAwareManagedObjectProvides theManagedObjectContextto theManagedObject.- Specified by:
setManagedObjectContextin interfaceContextAwareManagedObject- Parameters:
context-ManagedObjectContext.
-
loadObjects
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<Indexed>- 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.
-