public class SerializerProxyManager extends Object implements IProxyManagerForObjectIO
Constructor and Description |
---|
SerializerProxyManager(ClassInfoFactory classInfoFactory) |
Modifier and Type | Method and Description |
---|---|
ClassInfo |
classInfoOfObject(Object object) |
ClassInfoFactory |
getClassInfoFactory() |
Object |
newInstanceConstruct(ClassInfo objectClassInfo,
Class<?>[] parameterTypes,
Object[] initargs,
StorageInfo storageInfo,
IObjectIOManagerForProxyObjectIO objectIOManager,
DataRecordIdentifier dataRecordIdentifier,
boolean persisted)
create a new proxy instance constructing object
The parameterTypes parameter is an array of
Class objects that identify the constructor's formal
parameter types, in declared order. |
Object |
newInstanceConstruct(ClassInfo objectClassInfo,
StorageInfo storageInfo,
IObjectIOManagerForProxyObjectIO objectIOManager,
DataRecordIdentifier dataRecordIdentifier,
boolean persisted) |
ObjectAndPersistInfo |
newInstanceNoConstruction(ClassInfo objectClassInfo,
StorageInfo storageInfo,
IObjectIOManagerForProxyObjectIO objectIOManager,
DataRecordIdentifier dataRecordIdentifier,
boolean persisted)
create a new proxy instance for a class.
|
void |
unloadAndAssociateToCurrentSession(Object object,
IObjectIOManagerForObjectIO objectIOManager) |
public SerializerProxyManager(ClassInfoFactory classInfoFactory)
public ClassInfo classInfoOfObject(Object object) throws ProxyException
classInfoOfObject
in interface IProxyManagerForObjectIO
ProxyException
public ClassInfoFactory getClassInfoFactory()
getClassInfoFactory
in interface IProxyManagerForObjectIO
public ObjectAndPersistInfo newInstanceNoConstruction(ClassInfo objectClassInfo, StorageInfo storageInfo, IObjectIOManagerForProxyObjectIO objectIOManager, DataRecordIdentifier dataRecordIdentifier, boolean persisted) throws ProxyException
IProxyManagerForObjectIO
newInstanceNoConstruction
in interface IProxyManagerForObjectIO
objectClassInfo
- the class of object which for a proxy is to createdobjectIOManager
- object input/output manager for state reading from filedataRecordIdentifier
- data record identifier of the instance to create, may be null
if not definedpersisted
- true if object to be persistedProxyException
public Object newInstanceConstruct(ClassInfo objectClassInfo, Class<?>[] parameterTypes, Object[] initargs, StorageInfo storageInfo, IObjectIOManagerForProxyObjectIO objectIOManager, DataRecordIdentifier dataRecordIdentifier, boolean persisted) throws ProxyException
IProxyManagerForObjectIO
parameterTypes
parameter is an array of
Class
objects that identify the constructor's formal
parameter types, in declared order.newInstanceConstruct
in interface IProxyManagerForObjectIO
objectClassInfo
- the class of object which for a proxy is to createdparameterTypes
- the parameter array.initargs
- array of objects to be passed as arguments to the constructor
call; values of primitive types are wrapped in a wrapper
object of the appropriate type (e.g. a float in a
Float
)objectIOManager
- object input/output manager for state reading from filedataRecordIdentifier
- data record identifier of the instance to create, may be null
if not definedpersisted
- true if object to be persistedProxyException
public Object newInstanceConstruct(ClassInfo objectClassInfo, StorageInfo storageInfo, IObjectIOManagerForProxyObjectIO objectIOManager, DataRecordIdentifier dataRecordIdentifier, boolean persisted) throws ProxyException
newInstanceConstruct
in interface IProxyManagerForObjectIO
ProxyException
public void unloadAndAssociateToCurrentSession(Object object, IObjectIOManagerForObjectIO objectIOManager) throws ProxyException
unloadAndAssociateToCurrentSession
in interface IProxyManagerForObjectIO
ProxyException
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.