Package com.ibm.di.config.base
Class PropertyManagerImpl
- java.lang.Object
-
- com.ibm.di.config.base.BaseConfigurationImpl
-
- com.ibm.di.config.base.PropertyManagerImpl
-
- All Implemented Interfaces:
BaseConfiguration
,MetamergeConfigChangeListener
,MetamergeFolder
,PropertyManager
,java.io.Serializable
public class PropertyManagerImpl extends BaseConfigurationImpl implements PropertyManager, MetamergeFolder
Manages the Property Stores in a MetamergeConfig.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.ibm.di.config.base.BaseConfigurationImpl
NAME
-
Fields inherited from interface com.ibm.di.config.interfaces.BaseConfiguration
CHILD_PATH_SEPARATOR, DISABLE_EXTPROPS, DISABLE_INHERITANCE, INHERIT_NONE, INHERIT_PARENT, ONE_LEVEL, RECURSIVE, RECURSIVE_ONELEVEL, RECURSIVE_SUBTREE, SEARCH_EXACTCASE, SEARCH_ONELEVEL, SEARCH_PARAMNAME, SEARCH_PARAMNAME_RE, SEARCH_PROPERTY, SEARCH_REGEX, SEARCH_SUBSTRING, SUBTREE
-
Fields inherited from interface com.ibm.di.config.interfaces.PropertyManager
STDCOLL_GLOBAL, STDCOLL_JAVA, STDCOLL_PROPERTY_NAMES, STDCOLL_SOLUTION, STDCOLL_SYSTEM
-
-
Constructor Summary
Constructors Constructor Description PropertyManagerImpl()
PropertyManagerImpl(java.lang.Object data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPropertyStore(PropertyStoreConfig psc)
Adds the property store config to the prop store collection.void
addStdStore(java.lang.String store)
Adds a standard property store to the config.MetamergeFolder
createFolder(java.lang.Object name)
This method always throws an Exception, you are not allowed to create Folders herejava.lang.Object
getClone()
PropertyStoreConfig
getDefaultPropertyStore()
Returns the designated default property store.java.lang.String[]
getNames()
This method returns an array of names contained in this folder.PropertyStoreConfig
getPasswordPropertyStore()
Returns the designated password property store.PropertyStoreConfig
getPropertyStore(java.lang.String name)
Returns the named PropertyStoreConfig.ContainerConfig
getPropertyStores()
Method gets the container for the property store configurations.void
init()
Called after internal data structure is set.boolean
isStdStore(PropertyStoreConfig psc)
Method determines if the Property Store Config passed in is as standard property store.java.util.Enumeration<BaseConfiguration>
list()
Returns a list of javax.naming.Binding objects for each of this folders child entries.void
setDefaultPasswordStore(PropertyStoreConfig psc)
Sets the default password storevoid
setDefaultPropertyStore(PropertyStoreConfig psc)
Sets the default property store-
Methods inherited from class com.ibm.di.config.base.BaseConfigurationImpl
addListener, configurationChanged, deepClone, detachFromParent, expandPropertyValue, expandPropertyValue, flatten, fromEntry, getBooleanParameter, getChild, getChildForPath, getChildNames, getData, getDataIterator, getDebug, getDebug, getDebugBreak, getEnabled, getFlags, getInheritsFrom, getInheritsFromRef, getIntegerParameter, getKeys, getLogEnabled, getLongName, getMetamergeConfig, getModified, getModTS, getName, getNamespace, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParameter, getParameter, getParameter, getParameterPropertySource, getParameterPropertySourceFromValue, getParameterRaw, getParent, getParentName, getPath, getReferences, getResHash, getScript, getScriptEngine, getShortName, getStringParameter, getSubstitutionMap, getUseConfigListeners, getUseListeners, getUserComment, hasParameter, isExpression, isParameterLocal, isProtectedParameter, nameForChild, notifyChange, notifyChange, notifyChange, performNotifyChange, reattachToParent, removeListener, removeParameter, search, search, setBooleanParameter, setChild, setData, setDebug, setDebugBreak, setEnabled, setFlags, setInheritsFrom, setInheritsFromRef, setIntegerParameter, setLogEnabled, setMetamergeConfig, setModified, setModTS, setName, setName, setNullBehavior, setNullBehaviorValue, setNullDefinition, setNullDefinitionValue, setParameter, setParameter, setParameterPropertySource, setParent, setProtectedParameter, setProtectedParameter, setScript, setScriptEngine, setStringParameter, setSubstitutionMap, setupInheritanceChain, setUseConfigListeners, setUseListeners, setUserComment, size, toEntry, toString, updateInheritsFrom, willExpandProps, willFlatten, willUseInherited
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.ibm.di.config.interfaces.BaseConfiguration
addListener, detachFromParent, flatten, fromEntry, getBooleanParameter, getChild, getChildForPath, getChildNames, getData, getDataIterator, getDebug, getDebug, getDebugBreak, getEnabled, getFlags, getInheritsFrom, getInheritsFromRef, getIntegerParameter, getKeys, getLogEnabled, getMetamergeConfig, getModified, getModTS, getName, getNamespace, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParameter, getParameter, getParameter, getParameterPropertySource, getParameterRaw, getParent, getPath, getReferences, getScript, getScriptEngine, getShortName, getStringParameter, getSubstitutionMap, getUseListeners, getUserComment, hasParameter, isExpression, isParameterLocal, isProtectedParameter, nameForChild, notifyChange, notifyChange, notifyChange, reattachToParent, removeListener, removeParameter, search, search, setBooleanParameter, setChild, setData, setDebug, setDebugBreak, setEnabled, setFlags, setInheritsFrom, setInheritsFromRef, setIntegerParameter, setLogEnabled, setMetamergeConfig, setModified, setModTS, setName, setName, setNullBehavior, setNullBehaviorValue, setNullDefinition, setNullDefinitionValue, setParameter, setParameter, setParameterPropertySource, setParent, setProtectedParameter, setProtectedParameter, setScript, setScriptEngine, setStringParameter, setSubstitutionMap, setupInheritanceChain, setUseListeners, setUserComment, size, toEntry, updateInheritsFrom, willFlatten
-
-
-
-
Method Detail
-
init
public void init() throws java.lang.Exception
Description copied from class:BaseConfigurationImpl
Called after internal data structure is set.- Specified by:
init
in interfaceBaseConfiguration
- Overrides:
init
in classBaseConfigurationImpl
- Throws:
java.lang.Exception
- if the initialization fails.
-
addPropertyStore
public void addPropertyStore(PropertyStoreConfig psc) throws java.lang.Exception
Description copied from interface:PropertyManager
Adds the property store config to the prop store collection.- Specified by:
addPropertyStore
in interfacePropertyManager
- Parameters:
psc
- The property store config to add to the collection.- Throws:
java.lang.Exception
-
getDefaultPropertyStore
public PropertyStoreConfig getDefaultPropertyStore()
Description copied from interface:PropertyManager
Returns the designated default property store.- Specified by:
getDefaultPropertyStore
in interfacePropertyManager
- Returns:
- The default prop store or NULL if none is designated
-
getPasswordPropertyStore
public PropertyStoreConfig getPasswordPropertyStore()
Description copied from interface:PropertyManager
Returns the designated password property store.- Specified by:
getPasswordPropertyStore
in interfacePropertyManager
- Returns:
- The password prop store or NULL if none is designated
-
getPropertyStore
public PropertyStoreConfig getPropertyStore(java.lang.String name)
Description copied from interface:PropertyManager
Returns the named PropertyStoreConfig.- Specified by:
getPropertyStore
in interfacePropertyManager
-
getPropertyStores
public ContainerConfig getPropertyStores()
Description copied from interface:PropertyManager
Method gets the container for the property store configurations.- Specified by:
getPropertyStores
in interfacePropertyManager
-
setDefaultPasswordStore
public void setDefaultPasswordStore(PropertyStoreConfig psc) throws java.lang.Exception
Description copied from interface:PropertyManager
Sets the default password store- Specified by:
setDefaultPasswordStore
in interfacePropertyManager
- Parameters:
psc
- The property store config- Throws:
java.lang.Exception
-
setDefaultPropertyStore
public void setDefaultPropertyStore(PropertyStoreConfig psc) throws java.lang.Exception
Description copied from interface:PropertyManager
Sets the default property store- Specified by:
setDefaultPropertyStore
in interfacePropertyManager
- Parameters:
psc
- The property store config- Throws:
java.lang.Exception
-
addStdStore
public void addStdStore(java.lang.String store) throws java.lang.Exception
Adds a standard property store to the config. If one is already present this method does nothing.- Specified by:
addStdStore
in interfacePropertyManager
- Parameters:
store
- The standard store name- Throws:
java.lang.Exception
-
isStdStore
public boolean isStdStore(PropertyStoreConfig psc)
Method determines if the Property Store Config passed in is as standard property store.- Specified by:
isStdStore
in interfacePropertyManager
- Parameters:
psc
- The Property Store Config to check on.- Returns:
- Returns true if the Property Store Config is a standard store. Otherwise, false is returned.
-
getClone
public java.lang.Object getClone() throws java.lang.Exception
Description copied from class:BaseConfigurationImpl
- Specified by:
getClone
in interfaceBaseConfiguration
- Overrides:
getClone
in classBaseConfigurationImpl
- Returns:
- a cloned version of this object.
- Throws:
java.lang.Exception
-
createFolder
public MetamergeFolder createFolder(java.lang.Object name) throws java.lang.Exception
This method always throws an Exception, you are not allowed to create Folders here- Specified by:
createFolder
in interfaceMetamergeFolder
- Parameters:
name
- Name of sub-folder- Returns:
- The MetamergeFolder object representing the new sub-folder
- Throws:
java.lang.Exception
-
list
public java.util.Enumeration<BaseConfiguration> list() throws java.lang.Exception
Description copied from interface:MetamergeFolder
Returns a list of javax.naming.Binding objects for each of this folders child entries. The Binding object contains the name of the object as well as the object itself.- Specified by:
list
in interfaceMetamergeFolder
- Returns:
- Enumeration of Binding objects
- Throws:
java.lang.Exception
-
getNames
public java.lang.String[] getNames() throws java.lang.Exception
Description copied from interface:MetamergeFolder
This method returns an array of names contained in this folder.- Specified by:
getNames
in interfaceMetamergeFolder
- Returns:
- The names value
- Throws:
java.lang.Exception
-
-