public class CompositePreferencesProvider extends Object implements ClusterPreferencesProvider
| Constructor and Description |
|---|
CompositePreferencesProvider(List<ClusterPreferencesProvider> components)
Listed in order of priority--components listed first will override
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChangeListener(ClusterPreferencesChangeListener listener)
Adds a listener for change events
|
ClusterPreferences |
getGlobalPreferences()
Returns the global preferences to be used when not in the context of a
specific node
|
ClusterPreferences |
getNodeScopedPreferences(String nodeID)
Returns the preferences to be used when in the context of a given node.
|
void |
removeChangeListener(ClusterPreferencesChangeListener listener)
Removes a listener for change events
|
public CompositePreferencesProvider(List<ClusterPreferencesProvider> components)
components - public ClusterPreferences getGlobalPreferences()
ClusterPreferencesProvidergetGlobalPreferences in interface ClusterPreferencesProviderpublic ClusterPreferences getNodeScopedPreferences(String nodeID)
ClusterPreferencesProvidergetNodeScopedPreferences in interface ClusterPreferencesProvidernodeID - the nodeIDpublic void addChangeListener(ClusterPreferencesChangeListener listener)
ClusterPreferencesProvideraddChangeListener in interface ClusterPreferencesProviderlistener - the listenerpublic void removeChangeListener(ClusterPreferencesChangeListener listener)
ClusterPreferencesProviderremoveChangeListener in interface ClusterPreferencesProviderlistener - the listenerCopyright © 2015 Actian Corporation. All Rights Reserved.