QJCC homepage

biz.chitec.quarterback.gjsa.server
Class BasicAdminExecutor.HandlingIndirections

java.lang.Object
  extended bybiz.chitec.quarterback.gjsa.server.BasicAdminExecutor.HandlingIndirections
Enclosing class:
BasicAdminExecutor

public class BasicAdminExecutor.HandlingIndirections
extends java.lang.Object

Preprocessor for property changes Implementations of this class can influence the transmission of properties in both directions. Additionally, they are informed about storing properties and saving the whole property storage to disk. HandlingIndirections instances are inserted into the system through BasicAdminExecutor.addHandlingIndirections().


Constructor Summary
BasicAdminExecutor.HandlingIndirections()
           
 
Method Summary
protected  java.lang.Object getToClient(java.lang.String propname, java.lang.Object value)
          Prepare a configuration setting for sending to the client.
protected  java.lang.Object putFromClient(java.lang.String propname, java.lang.Object value)
          Prepare a configuration setting for inserting in the server.
protected  void storageInsertion(java.lang.String propname, java.lang.Object value)
          Information that a property change is inserted into the storage.
protected  void storageSaving(java.util.List propnames)
          Information that the complete property storage is saved to disk.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicAdminExecutor.HandlingIndirections

public BasicAdminExecutor.HandlingIndirections()
Method Detail

getToClient

protected java.lang.Object getToClient(java.lang.String propname,
                                       java.lang.Object value)
Prepare a configuration setting for sending to the client. This method may change the given property in any possible way. If it returns null, the property is not sent to the client.

Parameters:
propname - Name of the property to send
value - Property's value before preprocessing
Returns:
Property's value after preprocessing, null to prevent sending at all.

putFromClient

protected java.lang.Object putFromClient(java.lang.String propname,
                                         java.lang.Object value)
Prepare a configuration setting for inserting in the server. The handler may change the property as it likes. Setting it to null will delete the property from the storage.

Parameters:
propname - Name of the property to be inserted
value - Property's value before preprocessing (i.e. as the client sent it)
Returns:
Property's value after preprocessing (so to insert it into the server)

storageInsertion

protected void storageInsertion(java.lang.String propname,
                                java.lang.Object value)
Information that a property change is inserted into the storage. The handler may take any action on this event.

Parameters:
propname - Name of property to be stored
value - Value to be stored

storageSaving

protected void storageSaving(java.util.List propnames)
Information that the complete property storage is saved to disk. The handler may take any action on this event.

Parameters:
propnames - List of property names whose values have changed

QJCC homepage