com.ibm.di.config.base
Class PropertyManagerImpl

java.lang.Object
  extended by com.ibm.di.config.base.BaseConfigurationImpl
      extended by com.ibm.di.config.base.PropertyManagerImpl
All Implemented Interfaces:
BaseConfiguration, MetamergeConfigChangeListener, MetamergeFolder, PropertyManager, 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.PropertyManager
STDCOLL_GLOBAL, STDCOLL_JAVA, STDCOLL_PROPERTY_NAMES, STDCOLL_SOLUTION, STDCOLL_SYSTEM
 
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
 
Constructor Summary
PropertyManagerImpl()
           
PropertyManagerImpl(Object data)
           
 
Method Summary
 void addPropertyStore(PropertyStoreConfig psc)
          Adds the property store config to the prop store collection.
 void addStdStore(String store)
          Adds a standard property store to the config.
 MetamergeFolder createFolder(Object name)
          This method always throws an Exception, you are not allowed to create Folders here
 Object getClone()
          
 PropertyStoreConfig getDefaultPropertyStore()
          Returns the designated default property store.
 String[] getNames()
          This method returns an array of names contained in this folder.
 PropertyStoreConfig getPasswordPropertyStore()
          Returns the designated password property store.
 PropertyStoreConfig getPropertyStore(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.
 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 store
 void 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, 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, nameForChild, notifyChange, notifyChange, notifyChange, performNotifyChange, reattachToParent, removeListener, removeParameter, search, search, setBooleanParameter, setChild, setData, setDebug, setDebugBreak, setEnabled, setFlags, setInheritsFrom, setInheritsFromRef, setIntegerParameter, setLogEnabled, setMetamergeConfig, setModified, setName, setName, setNullBehavior, setNullBehaviorValue, setNullDefinition, setNullDefinitionValue, setParameter, setParameter, setParameterPropertySource, setParent, 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, getName, getNamespace, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParameter, getParameter, getParameter, getParameterPropertySource, getParameterRaw, getParent, getPath, getReferences, getScript, getScriptEngine, getShortName, getStringParameter, getSubstitutionMap, getUseListeners, getUserComment, hasParameter, isExpression, isParameterLocal, nameForChild, notifyChange, notifyChange, notifyChange, reattachToParent, removeListener, removeParameter, search, search, setBooleanParameter, setChild, setData, setDebug, setDebugBreak, setEnabled, setFlags, setInheritsFrom, setInheritsFromRef, setIntegerParameter, setLogEnabled, setMetamergeConfig, setModified, setName, setName, setNullBehavior, setNullBehaviorValue, setNullDefinition, setNullDefinitionValue, setParameter, setParameter, setParameterPropertySource, setParent, setProtectedParameter, setScript, setScriptEngine, setStringParameter, setSubstitutionMap, setupInheritanceChain, setUseListeners, setUserComment, size, toEntry, updateInheritsFrom, willFlatten
 

Constructor Detail

PropertyManagerImpl

public PropertyManagerImpl()

PropertyManagerImpl

public PropertyManagerImpl(Object data)
Parameters:
data -
Method Detail

init

public void init()
          throws Exception
Description copied from class: BaseConfigurationImpl
Called after internal data structure is set.

Specified by:
init in interface BaseConfiguration
Overrides:
init in class BaseConfigurationImpl
Throws:
Exception - if the initialization fails.

addPropertyStore

public void addPropertyStore(PropertyStoreConfig psc)
                      throws Exception
Description copied from interface: PropertyManager
Adds the property store config to the prop store collection.

Specified by:
addPropertyStore in interface PropertyManager
Parameters:
psc - The property store config to add to the collection.
Throws:
Exception

getDefaultPropertyStore

public PropertyStoreConfig getDefaultPropertyStore()
Description copied from interface: PropertyManager
Returns the designated default property store.

Specified by:
getDefaultPropertyStore in interface PropertyManager
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 interface PropertyManager
Returns:
The password prop store or NULL if none is designated

getPropertyStore

public PropertyStoreConfig getPropertyStore(String name)
Description copied from interface: PropertyManager
Returns the named PropertyStoreConfig.

Specified by:
getPropertyStore in interface PropertyManager

getPropertyStores

public ContainerConfig getPropertyStores()
Description copied from interface: PropertyManager
Method gets the container for the property store configurations.

Specified by:
getPropertyStores in interface PropertyManager

setDefaultPasswordStore

public void setDefaultPasswordStore(PropertyStoreConfig psc)
                             throws Exception
Description copied from interface: PropertyManager
Sets the default password store

Specified by:
setDefaultPasswordStore in interface PropertyManager
Parameters:
psc - The property store config
Throws:
Exception

setDefaultPropertyStore

public void setDefaultPropertyStore(PropertyStoreConfig psc)
                             throws Exception
Description copied from interface: PropertyManager
Sets the default property store

Specified by:
setDefaultPropertyStore in interface PropertyManager
Parameters:
psc - The property store config
Throws:
Exception

addStdStore

public void addStdStore(String store)
                 throws Exception
Adds a standard property store to the config. If one is already present this method does nothing.

Specified by:
addStdStore in interface PropertyManager
Parameters:
store - The standard store name
Throws:
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 interface PropertyManager
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 Object getClone()
                throws Exception
Description copied from class: BaseConfigurationImpl

Specified by:
getClone in interface BaseConfiguration
Overrides:
getClone in class BaseConfigurationImpl
Returns:
a cloned version of this object.
Throws:
Exception

createFolder

public MetamergeFolder createFolder(Object name)
                             throws Exception
This method always throws an Exception, you are not allowed to create Folders here

Specified by:
createFolder in interface MetamergeFolder
Parameters:
name - Name of sub-folder
Returns:
The MetamergeFolder object representing the new sub-folder
Throws:
Exception

list

public Enumeration<BaseConfiguration> list()
                                    throws 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 interface MetamergeFolder
Returns:
Enumeration of Binding objects
Throws:
Exception

getNames

public String[] getNames()
                  throws Exception
Description copied from interface: MetamergeFolder
This method returns an array of names contained in this folder.

Specified by:
getNames in interface MetamergeFolder
Returns:
The names value
Throws:
Exception