Package es.bsc.dataclay.loader
Class ClientObjectLoader
- java.lang.Object
-
- es.bsc.dataclay.loader.DataClayObjectLoader
-
- es.bsc.dataclay.loader.ClientObjectLoader
-
public class ClientObjectLoader extends DataClayObjectLoader
This class is responsable to create DataClayObjects and load them with data coming from different resources. All possible constructions of DataClayObject should be included here. All possible "filling instance" use-cases should be managed here.
-
-
Field Summary
-
Fields inherited from class es.bsc.dataclay.loader.DataClayObjectLoader
DEBUG_ENABLED, logger
-
-
Constructor Summary
Constructors Constructor Description ClientObjectLoader(ClientRuntime theruntime)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeserializeDataIntoInstance(DataClayObject instance, ObjectWithDataParamOrReturn data, Map<MetaClassID,byte[]> ifaceBitMaps)Deserialize data into instance.protected DataClayRuntimegetRuntime()Get runtimeDataClayObjectnewInstance(MetaClassID classID, ObjectID objectID)Create a new instance using proper class loader-
Methods inherited from class es.bsc.dataclay.loader.DataClayObjectLoader
getOrNewAndLoadVolatile, getOrNewPersistentInstance, newInstanceInternal
-
-
-
-
Constructor Detail
-
ClientObjectLoader
public ClientObjectLoader(ClientRuntime theruntime)
Constructor- Parameters:
theruntime- Runtime being managed
-
-
Method Detail
-
getRuntime
protected DataClayRuntime getRuntime()
Description copied from class:DataClayObjectLoaderGet runtime- Specified by:
getRuntimein classDataClayObjectLoader- Returns:
- The runtime being managed.
-
newInstance
public DataClayObject newInstance(MetaClassID classID, ObjectID objectID)
Description copied from class:DataClayObjectLoaderCreate a new instance using proper class loader- Specified by:
newInstancein classDataClayObjectLoader- Parameters:
classID- ID of classobjectID- ID of object- Returns:
- Instance
-
deserializeDataIntoInstance
public void deserializeDataIntoInstance(DataClayObject instance, ObjectWithDataParamOrReturn data, Map<MetaClassID,byte[]> ifaceBitMaps)
Description copied from class:DataClayObjectLoaderDeserialize data into instance.- Specified by:
deserializeDataIntoInstancein classDataClayObjectLoader- Parameters:
instance- Instance to be filled.data- DataifaceBitMaps- Interface bitmaps
-
-