Class ManagedObjectExtensionExtractorMetaDataImpl<I>
- java.lang.Object
-
- net.officefloor.frame.impl.execute.administration.ManagedObjectExtensionExtractorMetaDataImpl<I>
-
- All Implemented Interfaces:
ManagedObjectExtensionExtractor<I>
,ManagedObjectExtensionExtractorMetaData<I>
public class ManagedObjectExtensionExtractorMetaDataImpl<I> extends java.lang.Object implements ManagedObjectExtensionExtractorMetaData<I>, ManagedObjectExtensionExtractor<I>
Implementation of theManagedObjectExtensionExtractorMetaData
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ManagedObjectExtensionExtractorMetaDataImpl(ManagedObjectIndex managedObjectIndex, ExtensionFactory<I>[] extensionInterfaceFactories)
Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description I
extractExtension(ManagedObject managedObject, ManagedObjectMetaData<?> managedObjectMetaData)
Extracts the extension from theManagedObject
.ManagedObjectExtensionExtractor<I>
getManagedObjectExtensionExtractor()
Obtains theManagedObjectExtensionExtractor
to extract the Extension Interface from theManagedObject
.ManagedObjectIndex
getManagedObjectIndex()
Obtains theManagedObjectIndex
to identify theManagedObject
to extract the extension interface from.
-
-
-
Constructor Detail
-
ManagedObjectExtensionExtractorMetaDataImpl
public ManagedObjectExtensionExtractorMetaDataImpl(ManagedObjectIndex managedObjectIndex, ExtensionFactory<I>[] extensionInterfaceFactories)
Initiate.- Parameters:
managedObjectIndex
-ManagedObjectIndex
identifying theManagedObject
implementing the extension interface.extensionInterfaceFactories
-ExtensionFactory
instances in the order of theManagedObjectMetaData
instances corresponding to theManagedObject
instances for theManagedObjectIndex
.
-
-
Method Detail
-
getManagedObjectIndex
public ManagedObjectIndex getManagedObjectIndex()
Description copied from interface:ManagedObjectExtensionExtractorMetaData
Obtains theManagedObjectIndex
to identify theManagedObject
to extract the extension interface from.- Specified by:
getManagedObjectIndex
in interfaceManagedObjectExtensionExtractorMetaData<I>
- Returns:
ManagedObjectIndex
to identify theManagedObject
to extract the extension interface from.
-
getManagedObjectExtensionExtractor
public ManagedObjectExtensionExtractor<I> getManagedObjectExtensionExtractor()
Description copied from interface:ManagedObjectExtensionExtractorMetaData
Obtains theManagedObjectExtensionExtractor
to extract the Extension Interface from theManagedObject
.- Specified by:
getManagedObjectExtensionExtractor
in interfaceManagedObjectExtensionExtractorMetaData<I>
- Returns:
ManagedObjectExtensionExtractor
to extract the Extension Interface from theManagedObject
.
-
extractExtension
public I extractExtension(ManagedObject managedObject, ManagedObjectMetaData<?> managedObjectMetaData) throws java.lang.Throwable
Description copied from interface:ManagedObjectExtensionExtractor
Extracts the extension from theManagedObject
.- Specified by:
extractExtension
in interfaceManagedObjectExtensionExtractor<I>
- Parameters:
managedObject
-ManagedObject
to extract the extension interface from.managedObjectMetaData
-ManagedObjectMetaData
of theManagedObject
to aid in extracting the extension interface.- Returns:
- Extension Interface.
- Throws:
java.lang.Throwable
- If fails to extract the extension.
-
-