org.gcube.data.tm.state
Class TBinderPersistenceDelegate

java.lang.Object
  extended by org.gcube.common.core.persistence.GCUBEPersistenceDelegate<RESOURCEID,RESOURCE>
      extended by org.gcube.common.core.persistence.GCUBEFilePersistenceDelegate<org.gcube.common.core.state.GCUBEWSResourceKey,RESOURCE>
          extended by org.gcube.common.core.persistence.GCUBEWSFilePersistenceDelegate<TBinderResource>
              extended by org.gcube.data.tm.state.TBinderPersistenceDelegate

public class TBinderPersistenceDelegate
extends org.gcube.common.core.persistence.GCUBEWSFilePersistenceDelegate<TBinderResource>

Extends GCUBEWSFilePersistenceDelegate to (de)serialise AccessorResources.

Author:
Fabio Simeoni

Field Summary
 
Fields inherited from class org.gcube.common.core.persistence.GCUBEWSFilePersistenceDelegate
ctxt, WSRESOURCE_FILE_SUFFIX
 
Fields inherited from class org.gcube.common.core.persistence.GCUBEPersistenceDelegate
logger
 
Constructor Summary
TBinderPersistenceDelegate()
           
 
Method Summary
protected  void onLoad(TBinderResource binder, boolean firstLoad)
          
protected  void onLoad(TBinderResource binder, ObjectInputStream stream)
          
protected  void onStore(TBinderResource binder, ObjectOutputStream stream)
          
 
Methods inherited from class org.gcube.common.core.persistence.GCUBEWSFilePersistenceDelegate
getFileFromResource, getIDFromFileName, getSuffix, initialise
 
Methods inherited from class org.gcube.common.core.persistence.GCUBEFilePersistenceDelegate
getResourceIdentifiers, getStorageRoot, onRemove, onStore
 
Methods inherited from class org.gcube.common.core.persistence.GCUBEPersistenceDelegate
load, remove, store
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TBinderPersistenceDelegate

public TBinderPersistenceDelegate()
Method Detail

onLoad

protected void onLoad(TBinderResource binder,
                      ObjectInputStream stream)
               throws Exception

Overrides:
onLoad in class org.gcube.common.core.persistence.GCUBEWSFilePersistenceDelegate<TBinderResource>
Throws:
Exception

onStore

protected void onStore(TBinderResource binder,
                       ObjectOutputStream stream)
                throws Exception

Overrides:
onStore in class org.gcube.common.core.persistence.GCUBEWSFilePersistenceDelegate<TBinderResource>
Throws:
Exception

onLoad

protected void onLoad(TBinderResource binder,
                      boolean firstLoad)
               throws Exception

Overrides:
onLoad in class org.gcube.common.core.persistence.GCUBEFilePersistenceDelegate<org.gcube.common.core.state.GCUBEWSResourceKey,TBinderResource>
Throws:
Exception


Copyright © 2012. All Rights Reserved.