public class ClassExtensionInterfaceFactory extends Object implements ExtensionInterfaceFactory
ExtensionInterfaceFactory
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.
Constructor and Description |
---|
ClassExtensionInterfaceFactory() |
Modifier and Type | Method and Description |
---|---|
Object |
createExtensionInterface(ManagedObject managedObject)
Creates the specific extension interface for the
ManagedObject . |
static void |
registerExtensionInterface(AbstractAsyncManagedObjectSource.MetaDataContext<Indexed,Indexed> context,
Class<?> objectClass)
Registers the extension interface.
|
public static void registerExtensionInterface(AbstractAsyncManagedObjectSource.MetaDataContext<Indexed,Indexed> context, Class<?> objectClass)
context
- AbstractAsyncManagedObjectSource.MetaDataContext
to add the extension interface.objectClass
- Object class which is the extension interface.public Object createExtensionInterface(ManagedObject managedObject)
ExtensionInterfaceFactory
ManagedObject
.createExtensionInterface
in interface ExtensionInterfaceFactory
managedObject
- ManagedObject
that is have the extension interface
created for it.ManagedObject
.Copyright © 2005–2016. All rights reserved.