Class ManagedObjectGovernanceMetaDataImpl<I>
- java.lang.Object
-
- net.officefloor.frame.impl.execute.managedobject.ManagedObjectGovernanceMetaDataImpl<I>
-
- All Implemented Interfaces:
ManagedObjectExtensionExtractor<I>
,ManagedObjectGovernanceMetaData<I>
public class ManagedObjectGovernanceMetaDataImpl<I> extends java.lang.Object implements ManagedObjectGovernanceMetaData<I>, ManagedObjectExtensionExtractor<I>
ManagedObjectGovernanceMetaData
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ManagedObjectGovernanceMetaDataImpl(int governanceIndex, ExtensionFactory<I> extensionInterfaceFactory)
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>
getExtensionInterfaceExtractor()
Obtains theManagedObjectExtensionExtractor
to extract the extension interface from theManagedObject
.int
getGovernanceIndex()
Obtains the index for theGovernance
within theThreadState
.
-
-
-
Constructor Detail
-
ManagedObjectGovernanceMetaDataImpl
public ManagedObjectGovernanceMetaDataImpl(int governanceIndex, ExtensionFactory<I> extensionInterfaceFactory)
Initiate.- Parameters:
governanceIndex
-Governance
index.extensionInterfaceFactory
-ExtensionFactory
.
-
-
Method Detail
-
getGovernanceIndex
public int getGovernanceIndex()
Description copied from interface:ManagedObjectGovernanceMetaData
Obtains the index for theGovernance
within theThreadState
.- Specified by:
getGovernanceIndex
in interfaceManagedObjectGovernanceMetaData<I>
- Returns:
- Index for the
Governance
within theThreadState
.
-
getExtensionInterfaceExtractor
public ManagedObjectExtensionExtractor<I> getExtensionInterfaceExtractor()
Description copied from interface:ManagedObjectGovernanceMetaData
Obtains theManagedObjectExtensionExtractor
to extract the extension interface from theManagedObject
.- Specified by:
getExtensionInterfaceExtractor
in interfaceManagedObjectGovernanceMetaData<I>
- Returns:
ManagedObjectExtensionExtractor
.
-
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.
-
-