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 void
deserializeDataIntoInstance(DataClayObject instance, ObjectWithDataParamOrReturn data, Map<MetaClassID,byte[]> ifaceBitMaps)
Deserialize data into instance.protected DataClayRuntime
getRuntime()
Get runtimeDataClayObject
newInstance(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:DataClayObjectLoader
Get runtime- Specified by:
getRuntime
in classDataClayObjectLoader
- Returns:
- The runtime being managed.
-
newInstance
public DataClayObject newInstance(MetaClassID classID, ObjectID objectID)
Description copied from class:DataClayObjectLoader
Create a new instance using proper class loader- Specified by:
newInstance
in 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:DataClayObjectLoader
Deserialize data into instance.- Specified by:
deserializeDataIntoInstance
in classDataClayObjectLoader
- Parameters:
instance
- Instance to be filled.data
- DataifaceBitMaps
- Interface bitmaps
-
-