Class ClassExtensionFactory
java.lang.Object
net.officefloor.plugin.managedobject.clazz.ClassExtensionFactory
- All Implemented Interfaces:
ExtensionFactory
ExtensionFactory that return the object of the
ClassManagedObject.
This allows any implemented interfaces of the class to be an extension
interface for the ManagedObject with implementation delegated to the
object instantiated from the class.
- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateExtension(ManagedObject managedObject) Creates the specific extension for theManagedObject.static voidregisterExtension(AbstractAsyncManagedObjectSource.MetaDataContext<Indexed, Indexed> context, Class<?> objectClass) Registers the extension.
-
Constructor Details
-
ClassExtensionFactory
public ClassExtensionFactory()
-
-
Method Details
-
registerExtension
public static void registerExtension(AbstractAsyncManagedObjectSource.MetaDataContext<Indexed, Indexed> context, Class<?> objectClass) Registers the extension.- Parameters:
context-AbstractAsyncManagedObjectSource.MetaDataContextto add the extension interface.objectClass- Object class which is the extension interface.
-
createExtension
Description copied from interface:ExtensionFactoryCreates the specific extension for theManagedObject.- Specified by:
createExtensionin interfaceExtensionFactory- Parameters:
managedObject-ManagedObjectthat is have the extension created for it.- Returns:
- Extension for the
ManagedObject.
-