|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.dialog.impl.DefaultFeatureManager
A default implementation of FeatureManager.
| Constructor Summary | |
DefaultFeatureManager(DialogControl dialogControl)
Creates a new DefaultFeatureManager. |
|
| Method Summary | |
void |
collectSystemInfo(SystemInfoNode root,
SystemInfoOptions options)
Builds the system information tree upon local information of the implementor. |
void |
dispose()
Disposes the component. |
Feature |
getFeature(java.lang.Class keyClass)
Returns the Feature associated with the given key class. |
boolean |
hasFeature(java.lang.Class keyClass)
Returns true, if a Feature is registered under the
given key class. |
Feature |
installFeature(java.lang.Class featureClass)
Installs an instance of the specified feature class. |
Feature |
installFeature(java.lang.Class keyClass,
java.lang.Class featureClass)
Installs an instance of the specified feature class under the given key class. |
Feature |
installFeature(java.lang.Class keyClass,
Feature feature)
Installs the specified feature under the given key class. |
Feature |
installFeature(Feature feature)
Installs the specified feature. |
Feature |
requireFeature(java.lang.Class featureClass)
Returns the feature associated with the given key class; if no such feature was registered before, a new instance of the given class will created and installed as Feature for it's concrete class
as feature key class. |
Feature |
uninstallFeature(Feature feature)
Uninstalls the specified feature instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultFeatureManager(DialogControl dialogControl)
DefaultFeatureManager.
| Method Detail |
public Feature installFeature(Feature feature)
FeatureManagerFeature cannote be accessed by
a key class, so therefore FeatureManager.installFeature(Class, Feature) should
be called.
installFeature in interface FeatureManagerfeature - the feature instance to be installed
Feature instance (the same than the parameter)FeatureManager.installFeature(Feature)
public Feature installFeature(java.lang.Class keyClass,
Feature feature)
FeatureManagerNote: There must no feature installed with the given key class before, otherwise an assertion will be thrown.
installFeature in interface FeatureManagerkeyClass - the key class to refer to the featurefeature - the feature instance to be installed
Feature instance (the same than the parameter)FeatureManager.installFeature(java.lang.Class, Feature)public Feature uninstallFeature(Feature feature)
FeatureManager
uninstallFeature in interface FeatureManagerfeature - the feature instance to be uninstalled
Feature instanceFeatureManager.uninstallFeature(Feature)public boolean hasFeature(java.lang.Class keyClass)
FeatureManagertrue, if a Feature is registered under the
given key class.
hasFeature in interface FeatureManagerkeyClass - the key class to check containment forFeatureManager.hasFeature(java.lang.Class)public Feature getFeature(java.lang.Class keyClass)
FeatureManagerFeature associated with the given key class.
getFeature in interface FeatureManagerkeyClass - the key class to get a Feature for
Feature instanceFeatureManager.getFeature(java.lang.Class)
public Feature installFeature(java.lang.Class keyClass,
java.lang.Class featureClass)
FeatureManagerFeatureManager tries to create the feature instance using
the registered FeatureCreator's. It is assumed, that the
most specific FeatureCreator is added last.
The given feature class must be a subclass of the key class given.
Note: There must no feature installed with the given key class before, otherwise an assertion will be thrown.
installFeature in interface FeatureManagerkeyClass - the key class to refer to the feature (if null, the
feature instance will be installed, but no mapping will be made)featureClass - the feature class to install an instance of
Feature instanceFeatureManager.installFeature(java.lang.Class, java.lang.Class)public Feature installFeature(java.lang.Class featureClass)
FeatureManagerFeatureManager.installFeature(Class, Class).
The FeatureManager tries to create the feature instance using
the registered FeatureCreator's. It is assumed, that the
most specific FeatureCreator is added last.
installFeature in interface FeatureManagerfeatureClass - the feature class to install an instance of
Feature instanceFeatureManager.installFeature(java.lang.Class)public Feature requireFeature(java.lang.Class featureClass)
FeatureManagerFeature for it's concrete class
as feature key class.
requireFeature in interface FeatureManagerfeatureClass - the key and concrete feature class
Feature associated with the given key class.FeatureManager.requireFeature(java.lang.Class)
public void dispose()
throws DisposeException
Disposable
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.
dispose in interface DisposableDisposeException - if there was one or more errors while
disposing the component.Disposable.dispose()
public void collectSystemInfo(SystemInfoNode root,
SystemInfoOptions options)
SystemInfoProviderSystemInfoOptions).
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.
collectSystemInfo in interface SystemInfoProviderroot - 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)SystemInfoProvider.collectSystemInfo(com.sdm.quasar.client.core.common.sysinfo.SystemInfoNode, com.sdm.quasar.client.core.common.sysinfo.SystemInfoOptions)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||