com.ca.jcs.util
Class NullConnectorPersister

java.lang.Object
  extended by com.ca.jcs.ConnectorPersister
      extended by com.ca.jcs.util.NullConnectorPersister

public class NullConnectorPersister
extends ConnectorPersister

Stubbed out persister for clients which want a stateless JCS, although this can also be achieved by leaving the persister set to null.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.ca.jcs.ConnectorPersister
ConnectorPersister.State, ConnectorPersister.StateType
 
Field Summary
 
Fields inherited from class com.ca.jcs.ConnectorPersister
connectorManager, enabled, observers
 
Constructor Summary
NullConnectorPersister()
           
 
Method Summary
 List<String> getConnectorList(String connTypeName)
          Method to get the names of all persisted connectors for a given connector type.
 List<String> getConnectorTypeList()
          Method to get the names of all persisted connector types.
 boolean isObfuscatedSplitRequired()
           
 ConnectorPersister.State loadConnectorState(String connTypeName, String connName)
          Load a connector state from persistent storage.
 ConnectorPersister.State loadConnectorTypeState(String connTypeName)
          Load a connector type state from persistent storage.
 
Methods inherited from class com.ca.jcs.ConnectorPersister
addObserver, deleteConnectorState, deleteConnectorTypeState, isEnabled, notifyStateDeleted, notifyStateSaved, removeObserver, saveConnectorState, saveConnectorTypeState, setConnectorManager, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullConnectorPersister

public NullConnectorPersister()
Method Detail

isObfuscatedSplitRequired

public boolean isObfuscatedSplitRequired()
Overrides:
isObfuscatedSplitRequired in class ConnectorPersister
Returns:
true if the connector manager should split off sensitive attributes and obfuscate their values, otherwise false.

loadConnectorState

public ConnectorPersister.State loadConnectorState(String connTypeName,
                                                   String connName)
                                            throws IOException
Description copied from class: ConnectorPersister
Load a connector state from persistent storage.

Specified by:
loadConnectorState in class ConnectorPersister
Parameters:
connTypeName - the connector type name.
connName - the connector name.
Returns:
an initialised state instance.
Throws:
IOException

loadConnectorTypeState

public ConnectorPersister.State loadConnectorTypeState(String connTypeName)
                                                throws IOException
Description copied from class: ConnectorPersister
Load a connector type state from persistent storage.

Specified by:
loadConnectorTypeState in class ConnectorPersister
Parameters:
connTypeName - the connector type name.
Returns:
an initialised state instance.
Throws:
IOException

getConnectorTypeList

public List<String> getConnectorTypeList()
                                  throws IOException
Description copied from class: ConnectorPersister
Method to get the names of all persisted connector types.

Specified by:
getConnectorTypeList in class ConnectorPersister
Returns:
list of connector type names.
Throws:
IOException

getConnectorList

public List<String> getConnectorList(String connTypeName)
                              throws IOException
Description copied from class: ConnectorPersister
Method to get the names of all persisted connectors for a given connector type.

Specified by:
getConnectorList in class ConnectorPersister
Parameters:
connTypeName - the connector type name
Returns:
list of connector names.
Throws:
IOException


Created 2011-07-14 13:27 EST