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 voidaddPropertyStore(PropertyStoreConfig psc)Adds the property store config to the prop store collection.voidaddStdStore(java.lang.String store)Adds a standard property store to the config.MetamergeFoldercreateFolder(java.lang.Object name)This method always throws an Exception, you are not allowed to create Folders herejava.lang.ObjectgetClone()PropertyStoreConfiggetDefaultPropertyStore()Returns the designated default property store.java.lang.String[]getNames()This method returns an array of names contained in this folder.PropertyStoreConfiggetPasswordPropertyStore()Returns the designated password property store.PropertyStoreConfiggetPropertyStore(java.lang.String name)Returns the named PropertyStoreConfig.ContainerConfiggetPropertyStores()Method gets the container for the property store configurations.voidinit()Called after internal data structure is set.booleanisStdStore(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.voidsetDefaultPasswordStore(PropertyStoreConfig psc)Sets the default password storevoidsetDefaultPropertyStore(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.ExceptionDescription copied from class:BaseConfigurationImplCalled after internal data structure is set.- Specified by:
initin interfaceBaseConfiguration- Overrides:
initin classBaseConfigurationImpl- Throws:
java.lang.Exception- if the initialization fails.
-
addPropertyStore
public void addPropertyStore(PropertyStoreConfig psc) throws java.lang.Exception
Description copied from interface:PropertyManagerAdds the property store config to the prop store collection.- Specified by:
addPropertyStorein interfacePropertyManager- Parameters:
psc- The property store config to add to the collection.- Throws:
java.lang.Exception
-
getDefaultPropertyStore
public PropertyStoreConfig getDefaultPropertyStore()
Description copied from interface:PropertyManagerReturns the designated default property store.- Specified by:
getDefaultPropertyStorein interfacePropertyManager- Returns:
- The default prop store or NULL if none is designated
-
getPasswordPropertyStore
public PropertyStoreConfig getPasswordPropertyStore()
Description copied from interface:PropertyManagerReturns the designated password property store.- Specified by:
getPasswordPropertyStorein interfacePropertyManager- Returns:
- The password prop store or NULL if none is designated
-
getPropertyStore
public PropertyStoreConfig getPropertyStore(java.lang.String name)
Description copied from interface:PropertyManagerReturns the named PropertyStoreConfig.- Specified by:
getPropertyStorein interfacePropertyManager
-
getPropertyStores
public ContainerConfig getPropertyStores()
Description copied from interface:PropertyManagerMethod gets the container for the property store configurations.- Specified by:
getPropertyStoresin interfacePropertyManager
-
setDefaultPasswordStore
public void setDefaultPasswordStore(PropertyStoreConfig psc) throws java.lang.Exception
Description copied from interface:PropertyManagerSets the default password store- Specified by:
setDefaultPasswordStorein 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:PropertyManagerSets the default property store- Specified by:
setDefaultPropertyStorein interfacePropertyManager- Parameters:
psc- The property store config- Throws:
java.lang.Exception
-
addStdStore
public void addStdStore(java.lang.String store) throws java.lang.ExceptionAdds a standard property store to the config. If one is already present this method does nothing.- Specified by:
addStdStorein 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:
isStdStorein 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.ExceptionDescription copied from class:BaseConfigurationImpl- Specified by:
getClonein interfaceBaseConfiguration- Overrides:
getClonein 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:
createFolderin 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:MetamergeFolderReturns 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:
listin interfaceMetamergeFolder- Returns:
- Enumeration of Binding objects
- Throws:
java.lang.Exception
-
getNames
public java.lang.String[] getNames() throws java.lang.ExceptionDescription copied from interface:MetamergeFolderThis method returns an array of names contained in this folder.- Specified by:
getNamesin interfaceMetamergeFolder- Returns:
- The names value
- Throws:
java.lang.Exception
-
-