Class ClassExtensionFactory
- java.lang.Object
-
- net.officefloor.plugin.managedobject.clazz.ClassExtensionFactory
-
- All Implemented Interfaces:
ExtensionFactory
public class ClassExtensionFactory extends java.lang.Object implements ExtensionFactory
ExtensionFactorythat return the object of theClassManagedObject.This allows any implemented interfaces of the class to be an extension interface for the
ManagedObjectwith implementation delegated to the object instantiated from the class.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ClassExtensionFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectcreateExtension(ManagedObject managedObject)Creates the specific extension for theManagedObject.static voidregisterExtension(AbstractAsyncManagedObjectSource.MetaDataContext<Indexed,Indexed> context, java.lang.Class<?> objectClass)Registers the extension.
-
-
-
Method Detail
-
registerExtension
public static void registerExtension(AbstractAsyncManagedObjectSource.MetaDataContext<Indexed,Indexed> context, java.lang.Class<?> objectClass)
Registers the extension.- Parameters:
context-AbstractAsyncManagedObjectSource.MetaDataContextto add the extension interface.objectClass- Object class which is the extension interface.
-
createExtension
public java.lang.Object createExtension(ManagedObject managedObject)
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.
-
-