com.sdm.quasar.client.core.dialogsupport.features
Class DataManagerFeature

java.lang.Object
  extended bycom.sdm.quasar.client.core.dialog.AbstractFeature
      extended bycom.sdm.quasar.client.core.dialogsupport.features.DataManagerFeature
All Implemented Interfaces:
DataManagerComponent, Feature, SystemInfoProvider

public class DataManagerFeature
extends AbstractFeature
implements DataManagerComponent

A Feature-based implementation of DataManagerComponent.

Version:
1.$Revision$
Author:
Thomas Wolf

Constructor Summary
DataManagerFeature()
           
 
Method Summary
 boolean canCreateDataManagerPlugInForClass(java.lang.Class pluginClass)
          Returns true, if this DataManagerFeature can create a plugin implementation for the plugin class given.
 void collectSystemInfo(SystemInfoNode root, SystemInfoOptions options)
          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. Subclasses should overwrite this method to append system informations Subclasses should overwrite this method to append system informations
 DataManagerPlugIn createDataManagerPlugInForClass(java.lang.Class pluginClass)
          Creates a plugin implementation for the plugin (key) class given.
protected  void dispose()
          Called when the feature or dialog is disposed.
 DataConfiguration getDataConfiguration()
           
 DataManager getDataManager()
           
 DataManagerSetup getDataManagerSetup()
           
 DataStructureConfiguration getDataStructureConfiguration()
           
protected  void init()
          Called when the feature is initializing.
 boolean isInstallPlugins()
           
 void setInstallPlugins(boolean installPlugins)
          Set flag that defines, if all configured PlugIns will be installed initially.
 
Methods inherited from class com.sdm.quasar.client.core.dialog.AbstractFeature
activate, attachDialogControl, deactivate, disposeFeature, getDialogControl, isInitialized, prepare, release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataManagerFeature

public DataManagerFeature()
Method Detail

init

protected void init()
Description copied from class: AbstractFeature
Called when the feature is initializing. This is normally done, when the feature is connected to the lifecycle of the DialogControl installed to. To access the DialogControl use the AbstractFeature.getDialogControl() method.

Override this method to perform some action on initialization e.g. register public services.

Specified by:
init in class AbstractFeature
See Also:
com.sdm.quasar.client.core.dialog.features.AbstractFeature#init()

dispose

protected void dispose()
                throws DisposeException
Description copied from class: AbstractFeature
Called when the feature or dialog is disposed. Override this method to clean up resources and free memory when disposing.

Specified by:
dispose in class AbstractFeature
Throws:
DisposeException

isInstallPlugins

public boolean isInstallPlugins()
Returns:
Flag, if all configured PlugIns will be installed initially

setInstallPlugins

public void setInstallPlugins(boolean installPlugins)
Set flag that defines, if all configured PlugIns will be installed initially. Default is true;

Parameters:
installPlugins - Flag, if all configured PlugIns will be installed initially

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

canCreateDataManagerPlugInForClass

public boolean canCreateDataManagerPlugInForClass(java.lang.Class pluginClass)
Returns true, if this DataManagerFeature can create a plugin implementation for the plugin class given. Uses DataManagerConfiguration.


createDataManagerPlugInForClass

public DataManagerPlugIn createDataManagerPlugInForClass(java.lang.Class pluginClass)
Creates a plugin implementation for the plugin (key) class given. Uses DataManagerConfiguration.

Parameters:
pluginClass - the plugin (key) class
Returns:
the plugin implementation for that class
Throws:
java.lang.IllegalArgumentException - if the plugin key class is not known (see canCreateDataManagerPlugInForClass(Class)).

collectSystemInfo

public void collectSystemInfo(SystemInfoNode root,
                              SystemInfoOptions options)
Description copied from class: AbstractFeature
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. Subclasses should overwrite this method to append system informations

Specified by:
collectSystemInfo in interface SystemInfoProvider
Overrides:
collectSystemInfo in class AbstractFeature
See Also:
AbstractFeature.collectSystemInfo(com.sdm.quasar.client.core.common.sysinfo.SystemInfoNode, com.sdm.quasar.client.core.common.sysinfo.SystemInfoOptions)