com.sdm.quasar.client.core.data.plugin
Interface DataCore

All Known Implementing Classes:
DefaultDataCore

public interface DataCore

Version:
1.$Revision$
Author:
Thomas Wolf

Method Summary
 NodeController getNodeController(java.lang.String key)
          Returns the internal node with the given key
 DataManagerPlugIn getPlugIn(java.lang.Class plugInInterface)
          Returns the desired plug in implementation
 java.lang.Object getSynchronizeObject()
          When performing an operation on the DataCore that should must be exclusive you should synchronize on this Object.
 boolean hasNode(java.lang.String key)
          Tests whether a given node exists
 boolean hasPlugIn(java.lang.Class plugInInterface)
          Tests whether the plug in is registered with the data core
 void registerDataManagerPluginCallback(DataManagerPluginCallback callback)
           
 void unregisterDataManagerPluginCallback(DataManagerPluginCallback callback)
           
 

Method Detail

getSynchronizeObject

public java.lang.Object getSynchronizeObject()
When performing an operation on the DataCore that should must be exclusive you should synchronize on this Object.

Returns:
the Object to synchronize on when performing exclusive operations within the DataManager.

hasNode

public boolean hasNode(java.lang.String key)
Tests whether a given node exists

Parameters:
key - the key of the node
Returns:
true iff the node exists

getNodeController

public NodeController getNodeController(java.lang.String key)
Returns the internal node with the given key

Parameters:
key - the key of the node
Returns:
the internal node with the given key
Throws:
java.lang.IllegalArgumentException - if the key is unknown

hasPlugIn

public boolean hasPlugIn(java.lang.Class plugInInterface)
Tests whether the plug in is registered with the data core

Parameters:
plugInInterface - the plug in interface
Returns:
true iff the plug in is available

getPlugIn

public DataManagerPlugIn getPlugIn(java.lang.Class plugInInterface)
Returns the desired plug in implementation

Parameters:
plugInInterface - the plug in interface
Returns:
the plug in implementation
Throws:
java.lang.IllegalArgumentException - if the plug in is not available

registerDataManagerPluginCallback

public void registerDataManagerPluginCallback(DataManagerPluginCallback callback)

unregisterDataManagerPluginCallback

public void unregisterDataManagerPluginCallback(DataManagerPluginCallback callback)