Package com.ibm.di.config.interfaces
Class ExternalPropertiesDelegator
- java.lang.Object
-
- com.ibm.di.config.base.BaseConfigurationImpl
-
- com.ibm.di.config.interfaces.ExternalPropertiesDelegator
-
- All Implemented Interfaces:
BaseConfiguration,ExternalPropertiesConfig,MetamergeConfigChangeListener,java.io.Serializable,java.util.Comparator
public class ExternalPropertiesDelegator extends BaseConfigurationImpl implements ExternalPropertiesConfig, MetamergeConfigChangeListener, java.util.Comparator
Deprecated.UseTDIPropertiesinstead.The old way of accessing External Properties.- See Also:
TDIProperties, 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
-
-
Constructor Summary
Constructors Constructor Description ExternalPropertiesDelegator(MetamergeConfig mc)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intcompare(java.lang.Object o1, java.lang.Object o2)Deprecated.voidconfigurationChanged(MetamergeConfigChange changeEvent)Deprecated.This method is not used anymore, and does nothingjava.lang.StringgetCipher()Deprecated.Returns the Cipher algorithm used when reading/writing an encrypted filejava.lang.ObjectgetClone()Deprecated.ExternalPropertiesConfiggetContainerForKey(java.lang.Object name)Deprecated.Always returns nullExternalPropertiesConfiggetDefaultExternalPropertyObject()Deprecated.Always returns nullbooleangetEncrypted()Deprecated.Gets the encrypted flag of the ExternalPropertiesConfig objectTDIPropertiesgetEPObjects()Deprecated.java.lang.StringgetFilePath()Deprecated.Gets the filePath attribute of the ExternalPropertiesConfig objectjava.util.List<java.lang.String>getKeys(int level)Deprecated.This method returns the combined set of property names in all extprop objectsTDIPropertyStoregetNamedXP(java.lang.String name)Deprecated.Returns the extern property config named name >java.lang.ObjectgetParameter(java.lang.Object name)Deprecated.Returns the value for a given config item.java.lang.StringgetPassword()Deprecated.Returns the password used when opening an encrypted file.booleangetSaveNeeded()Deprecated.Gets the saveNeeded flag of the ExternalPropertiesConfig objectvoidloadData()Deprecated.This method reads the external properties into memory for subseqent use.voidmergeData(java.lang.String path)Deprecated.Use a named ExternalProperties object instead of this callvoidremoveParameter(java.lang.Object name)Deprecated.Removes a local parameter from this object.voidsaveData()Deprecated.This method writes back the data to the external file.voidsetCipher(java.lang.String cipher)Deprecated.Sets the Cipher algorithm used when reading/writing an encrypted filevoidsetEncrypted(boolean encrypted)Deprecated.Sets the encrypted flag of the ExternalPropertiesConfig objectvoidsetFilePath(java.lang.String path)Deprecated.Sets the filePath attribute of the ExternalPropertiesConfig objectvoidsetParameter(java.lang.Object name, java.lang.Object value)Deprecated.Sets the value for a given config itemvoidsetPassword(java.lang.String password)Deprecated.Sets the password used when opening an encrypted file-
Methods inherited from class com.ibm.di.config.base.BaseConfigurationImpl
addListener, deepClone, detachFromParent, expandPropertyValue, expandPropertyValue, flatten, fromEntry, getBooleanParameter, getChild, getChildForPath, getChildNames, getData, getDataIterator, getDebug, getDebug, getDebugBreak, getEnabled, getFlags, getInheritsFrom, getInheritsFromRef, getIntegerParameter, getLogEnabled, getLongName, getMetamergeConfig, getModified, getModTS, getName, getNamespace, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParameter, getParameter, getParameterPropertySource, getParameterPropertySourceFromValue, getParameterRaw, getParent, getParentName, getPath, getReferences, getResHash, getScript, getScriptEngine, getShortName, getStringParameter, getSubstitutionMap, getUseConfigListeners, getUseListeners, getUserComment, hasParameter, init, isExpression, isParameterLocal, isProtectedParameter, nameForChild, notifyChange, notifyChange, notifyChange, performNotifyChange, reattachToParent, removeListener, search, search, setBooleanParameter, setChild, setData, setDebug, setDebugBreak, setEnabled, setFlags, setInheritsFrom, setInheritsFromRef, setIntegerParameter, setLogEnabled, setMetamergeConfig, setModified, setModTS, setName, setName, setNullBehavior, setNullBehaviorValue, setNullDefinition, setNullDefinitionValue, 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, getLogEnabled, getMetamergeConfig, getModified, getModTS, getName, getNamespace, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParameter, getParameter, getParameterPropertySource, getParameterRaw, getParent, getPath, getReferences, getScript, getScriptEngine, getShortName, getStringParameter, getSubstitutionMap, getUseListeners, getUserComment, hasParameter, init, isExpression, isParameterLocal, isProtectedParameter, nameForChild, notifyChange, notifyChange, notifyChange, reattachToParent, removeListener, search, search, setBooleanParameter, setChild, setData, setDebug, setDebugBreak, setEnabled, setFlags, setInheritsFrom, setInheritsFromRef, setIntegerParameter, setLogEnabled, setMetamergeConfig, setModified, setModTS, setName, setName, setNullBehavior, setNullBehaviorValue, setNullDefinition, setNullDefinitionValue, setParameter, setParameterPropertySource, setParent, setProtectedParameter, setProtectedParameter, setScript, setScriptEngine, setStringParameter, setSubstitutionMap, setupInheritanceChain, setUseListeners, setUserComment, size, toEntry, updateInheritsFrom, willFlatten
-
-
-
-
Constructor Detail
-
ExternalPropertiesDelegator
public ExternalPropertiesDelegator(MetamergeConfig mc)
Deprecated.
-
-
Method Detail
-
configurationChanged
@Deprecated public void configurationChanged(MetamergeConfigChange changeEvent)
Deprecated.This method is not used anymore, and does nothingThis metod does nothing- Specified by:
configurationChangedin interfaceMetamergeConfigChangeListener- Overrides:
configurationChangedin classBaseConfigurationImpl
-
getSaveNeeded
public boolean getSaveNeeded()
Deprecated.Gets the saveNeeded flag of the ExternalPropertiesConfig object- Specified by:
getSaveNeededin interfaceExternalPropertiesConfig- Returns:
- The saveNeeded value
-
loadData
public void loadData() throws java.lang.ExceptionDeprecated.This method reads the external properties into memory for subseqent use. This is typically done automatically by the hosting MetamergeConfig object when this object is requested.- Specified by:
loadDatain interfaceExternalPropertiesConfig- Throws:
java.lang.Exception- if the operation does not succeed
-
saveData
public void saveData() throws java.lang.ExceptionDeprecated.This method writes back the data to the external file.- Specified by:
saveDatain interfaceExternalPropertiesConfig- Throws:
java.lang.Exception- if the operation does not succeed
-
getKeys
public java.util.List<java.lang.String> getKeys(int level)
Deprecated.This method returns the combined set of property names in all extprop objects- Specified by:
getKeysin interfaceBaseConfiguration- Overrides:
getKeysin classBaseConfigurationImpl- Parameters:
level- can have these values:- ONE_LEVEL - only simple key/value items are returned.
- SUBTREE - all keys are returned regardless of whether they are complex (TreeMap) or simple (String, Boolean, Integer, Vector ).
- RECURSIVE - inherited keys are returned as well.
- Returns:
- The list of keys.
-
getParameter
public java.lang.Object getParameter(java.lang.Object name)
Deprecated.Description copied from class:BaseConfigurationImplReturns the value for a given config item. This method will call inherited object's getParameter if this object does not contain the named value. In case of returning an inherited value, the value from the inherited object will be cloned. It is up to the user to create a key/value local to this object by calling one of the setParameter methods.- Specified by:
getParameterin interfaceBaseConfiguration- Overrides:
getParameterin classBaseConfigurationImpl- Parameters:
name- The parameter name- Returns:
- The parameter value
-
getContainerForKey
@Deprecated public ExternalPropertiesConfig getContainerForKey(java.lang.Object name)
Deprecated.Always returns nullReturns null
-
getDefaultExternalPropertyObject
@Deprecated public ExternalPropertiesConfig getDefaultExternalPropertyObject()
Deprecated.Always returns nullReturns null
-
setParameter
public void setParameter(java.lang.Object name, java.lang.Object value)Deprecated.Description copied from class:BaseConfigurationImplSets the value for a given config item- Specified by:
setParameterin interfaceBaseConfiguration- Overrides:
setParameterin classBaseConfigurationImpl- Parameters:
name- Parameter namevalue- Parameter value
-
removeParameter
public void removeParameter(java.lang.Object name)
Deprecated.Description copied from class:BaseConfigurationImplRemoves a local parameter from this object.- Specified by:
removeParameterin interfaceBaseConfiguration- Overrides:
removeParameterin classBaseConfigurationImpl- Parameters:
name- Parameter name
-
getNamedXP
public TDIPropertyStore getNamedXP(java.lang.String name)
Deprecated.Returns the extern property config named name >
-
getEPObjects
public TDIProperties getEPObjects()
Deprecated.
-
compare
public int compare(java.lang.Object o1, java.lang.Object o2)Deprecated.- Specified by:
comparein interfacejava.util.Comparator
-
getClone
public java.lang.Object getClone()
Deprecated.Description copied from class:BaseConfigurationImpl- Specified by:
getClonein interfaceBaseConfiguration- Overrides:
getClonein classBaseConfigurationImpl- Returns:
- a cloned version of this object.
-
getFilePath
public java.lang.String getFilePath()
Deprecated.Gets the filePath attribute of the ExternalPropertiesConfig object- Specified by:
getFilePathin interfaceExternalPropertiesConfig- Returns:
- The filePath value
-
setFilePath
public void setFilePath(java.lang.String path)
Deprecated.Sets the filePath attribute of the ExternalPropertiesConfig object- Specified by:
setFilePathin interfaceExternalPropertiesConfig- Parameters:
path- The new filePath value
-
getPassword
public java.lang.String getPassword()
Deprecated.Returns the password used when opening an encrypted file. This method always returns null for security reasons.- Specified by:
getPasswordin interfaceExternalPropertiesConfig
-
setPassword
public void setPassword(java.lang.String password)
Deprecated.Sets the password used when opening an encrypted file- Specified by:
setPasswordin interfaceExternalPropertiesConfig
-
getCipher
public java.lang.String getCipher()
Deprecated.Returns the Cipher algorithm used when reading/writing an encrypted file- Specified by:
getCipherin interfaceExternalPropertiesConfig
-
setCipher
public void setCipher(java.lang.String cipher)
Deprecated.Sets the Cipher algorithm used when reading/writing an encrypted file- Specified by:
setCipherin interfaceExternalPropertiesConfig
-
getEncrypted
public boolean getEncrypted()
Deprecated.Gets the encrypted flag of the ExternalPropertiesConfig object- Specified by:
getEncryptedin interfaceExternalPropertiesConfig- Returns:
- The encrypted value
-
setEncrypted
public void setEncrypted(boolean encrypted)
Deprecated.Sets the encrypted flag of the ExternalPropertiesConfig object- Specified by:
setEncryptedin interfaceExternalPropertiesConfig- Parameters:
encrypted- The new encrypted value
-
mergeData
@Deprecated public void mergeData(java.lang.String path) throws java.lang.ExceptionDeprecated.Use a named ExternalProperties object instead of this callThis method merges the contents of a file into the current list of properties.- Specified by:
mergeDatain interfaceExternalPropertiesConfig- Parameters:
path- The file path to load properties from- Throws:
java.lang.Exception- Always, use a named ExternalProperties object instead of this call
-
-