com.sdm.quasar.client.core.data.impl
Class DefaultDataManagerComponent

java.lang.Object
  extended bycom.sdm.quasar.client.core.data.impl.DefaultDataManagerComponent
All Implemented Interfaces:
DataManagerComponent, Disposable, SystemInfoProvider

public class DefaultDataManagerComponent
extends java.lang.Object
implements DataManagerComponent, Disposable, SystemInfoProvider

Default implementation for DataManagerComponent.

Version:
1.0
Author:
Thomas Wolf, sd&m AG, Bernd Olleck, sd&m AG

Constructor Summary
DefaultDataManagerComponent()
           
 
Method Summary
 void collectSystemInfo(SystemInfoNode root, SystemInfoOptions options)
          Builds the system information tree upon local information of the implementor.
 void dispose()
          Disposes the component.
 DataConfiguration getDataConfiguration()
           
 DataManager getDataManager()
           
 DataManagerSetup getDataManagerSetup()
           
 DataStructureConfiguration getDataStructureConfiguration()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDataManagerComponent

public DefaultDataManagerComponent()
Method Detail

getDataManager

public DataManager getDataManager()
Specified by:
getDataManager in interface DataManagerComponent
Returns:
the data access

getDataConfiguration

public DataConfiguration getDataConfiguration()
Specified by:
getDataConfiguration in interface DataManagerComponent
Returns:
a DataStructureConfiguration

getDataStructureConfiguration

public DataStructureConfiguration getDataStructureConfiguration()
Returns:
a DataStructureConfiguration

getDataManagerSetup

public DataManagerSetup getDataManagerSetup()
Specified by:
getDataManagerSetup in interface DataManagerComponent
Returns:
the administration setup

dispose

public void dispose()
             throws DisposeException
Description copied from interface: Disposable
Disposes the component.

Important:
This method is called by an administrating component and must never be called directly.

The implementation should release any resources or objects allocated and any services registered. Furthermore, this method should be developed carefully to free a maximum of resources even when the system may have become unstable. In case of one or multiple errors, you should collect them in a DisposeException, continue with the execution, and throw it at the end of the method.

Note: The implementation must not return before the component is disposed. Any threads or asynchronous calls started must be completed before this method returns.

Specified by:
dispose in interface Disposable
Throws:
DisposeException - if there was one or more errors while disposing the component.

collectSystemInfo

public void collectSystemInfo(SystemInfoNode root,
                              SystemInfoOptions options)
Description copied from interface: SystemInfoProvider
Builds the system information tree upon local information of the implementor. The system information tree can be used within development by inspecting the system; so implementors should append their internal state (depending on the details settings within SystemInfoOptions). The information can be appended to the tree by adding new child SystemInformationNodes to the root node given using the SystemInfoNode.createChild(String) method and by setting information attributes the these nodes or the given root node.

Specified by:
collectSystemInfo in interface SystemInfoProvider
Parameters:
root - the SystemInfoNode to add information to (guaranteed to be not null)
options - contains additional options, that might influence the amount of information added to the tree (guaranteed to be not null)
See Also:
SystemInfoProvider.collectSystemInfo(com.sdm.quasar.client.core.common.sysinfo.SystemInfoNode, com.sdm.quasar.client.core.common.sysinfo.SystemInfoOptions)