com.ibm.di.config.xml
Class MetamergeConfigFS

java.lang.Object
  extended by com.ibm.di.config.base.BaseConfigurationImpl
      extended by com.ibm.di.config.base.MetamergeConfigImpl
          extended by com.ibm.di.config.xml.MetamergeConfigXML
              extended by com.ibm.di.config.xml.MetamergeConfigFS
All Implemented Interfaces:
BaseConfiguration, MetamergeConfig, MetamergeConfigChangeListener, MetamergeFolder, Serializable

public class MetamergeConfigFS
extends MetamergeConfigXML

See Also:
Serialized Form

Field Summary
protected  Exception configError
           
protected  BaseConfiguration configObject
           
static String MC_URLBASE
           
static String XT_ASSEMBLYLINE
          Extension --> type mapping
static String XT_ATTRMAP
           
static Class[] XT_CLS
           
static String XT_CONNECTOR
           
static String[] XT_EXT
           
static String XT_FUNCTION
           
static String XT_PARSER
           
static String XT_SCRIPT
           
 
Fields inherited from class com.ibm.di.config.xml.MetamergeConfigXML
IDI_CREATED, IDI_VERSION, METAMERGE_CONFIG_TAG, METAMERGE_CREATED_TAG, METAMERGE_CREATEDBY_TAG, METAMERGE_MODIFIED_TAG, METAMERGE_MODIFIEDBY_TAG, METAMERGE_VERSION_ID, METAMERGE_VERSION_TAG, SERVER_ENCRYPTED_SIGNATURE
 
Fields inherited from class com.ibm.di.config.base.MetamergeConfigImpl
classMap, DEFAULT_FOLDER_IMPL, DEFAULT_FOLDER_NAMES, env, externalPropertiesDelegator, logger
 
Fields inherited from class com.ibm.di.config.base.BaseConfigurationImpl
NAME
 
Fields inherited from interface com.ibm.di.config.interfaces.MetamergeConfig
ASSEMBLYLINE_FOLDER, ATTRIBUTEMAP_FOLDER, CONFIG_FOLDER, CONNECTOR_FOLDER, DEFAULT_ASSEMBLYLINE_FOLDER, DEFAULT_ATTRIBUTEMAP_FOLDER, DEFAULT_CONFIG_FOLDER, DEFAULT_CONNECTOR_FOLDER, DEFAULT_EVENTHANDLER_FOLDER, DEFAULT_EXTPROP_FOLDER, DEFAULT_EXTPROP_NAME, DEFAULT_FORM_FOLDER, DEFAULT_FUNCTION_FOLDER, DEFAULT_LIBRARY_FOLDER, DEFAULT_LIBS_FOLDER, DEFAULT_NAMESPACE_FOLDER, DEFAULT_PARSER_FOLDER, DEFAULT_PROPERTY_FOLDER, DEFAULT_PROPSTORE_FOLDER, DEFAULT_SCRIPT_FOLDER, DEFAULT_SERVER_AUTOSTART, DEFAULT_SERVER_FOLDER, DEFAULT_SERVER_INSTANCE_PROPERTIES, DEFAULT_SERVER_LOG, DEFAULT_SERVER_TOMBSTONES, DEFAULT_SOLUTION_INTERFACE, EVENTHANDLER_FOLDER, EXTPROP_FOLDER, FORM_FOLDER, FUNCTION_FOLDER, LIBRARY_FOLDER, LIBS_FOLDER, LOGGING_FOLDER, NAMESPACE_FOLDER, PARSER_FOLDER, PROPERTY_FOLDER, PROPSTORE_FOLDER, SCRIPT_FOLDER
 
Fields inherited from interface com.ibm.di.config.interfaces.BaseConfiguration
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, SUBTREE
 
Constructor Summary
MetamergeConfigFS()
           
MetamergeConfigFS(Hashtable env)
           
 
Method Summary
 void bind(Object name, Object obj)
          Adds a new object to the configuration at the location specified by name
 void commitChanges(Object output, boolean isSave)
          Save XML tree to output stream.
 void commitVersion()
          Save XML tree to output stream.
protected  void convertExternalProperties()
           
 void createDefaultObjectInstance(Element defaultNode)
           
 Object externalLookup(Object name)
           
 Element findDefaultObject()
          This method cleans the XML config by removing all items except the one configured for this configuration.
 String getBase()
           
 BaseConfiguration getDefaultConfigObject()
           
 BaseConfiguration getDefaultConfigObject(boolean standardName)
           
 String getExtensionFor(BaseConfiguration config)
           
static MetamergeConfigFS getInstance(String str)
           
static MetamergeConfigFS getInstance(String str, boolean create)
           
 boolean getModified()
          XML Doc needs to be saved if we have dirty objects in our cache or if there has been any successful bind/rebind/unbind calls.
 TDIProperties getTDIProperties()
          This method returns the associated TDIProperties object
protected  Object internalLookup(Object namex)
          Called by super's lookup
 void rebind(Object name, Object obj)
          Adds or replaces a new object to the configuration.
 void setBase(String base)
           
 boolean setDefaultName(String name)
           
 
Methods inherited from class com.ibm.di.config.xml.MetamergeConfigXML
createFolder, debug, findByName, findOneByName, getCache, getConfigVersion, getDocument, getOutputStream, getRootElement, getShortName, initializeConfig, isCommittable, isDebugMode, isOldVersion, isReadOnly, isRemote, list, list, logmsg, newInstanceOf, removeElement, rename, setOutput, toString, unbind
 
Methods inherited from class com.ibm.di.config.base.MetamergeConfigImpl
addDefaultFolders, addNameComponent, closeConfig, commitChanges, copy, getAssemblyLine, getConnector, getDefaultFolder, getDriverParameter, getDriverParameters, getEncryptMode, getEventHandler, getExternalProperties, getExternalProperties, getFileConfig, getFunction, getNames, getNamespace, getParser, getPassword, getScript, getSolutionInterface, getTreeMap, getVector, hasPassword, initializeClassMap, instantiateAllObjects, instantiateAllObjects, isServerSecureMode, lookup, lookupInFolder, newInstanceOf, setDriverParameter, setDriverParameters, setFileConfig
 
Methods inherited from class com.ibm.di.config.base.BaseConfigurationImpl
addListener, configurationChanged, deepClone, expandPropertyValue, expandPropertyValue, flatten, fromEntry, getBooleanParameter, getChild, getChildForPath, getChildNames, getClone, getData, getDataIterator, getDebug, getDebug, getDebugBreak, getEnabled, getFlags, getInheritsFrom, getInheritsFromRef, getIntegerParameter, getKeys, getLogEnabled, getMetamergeConfig, getName, getNamespace, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParameter, getParameter, getParameter, getParameterPropertySource, getParameterPropertySourceFromValue, getParameterRaw, getParent, getParentName, getPath, getReferences, getResHash, getScript, getScriptEngine, getStringParameter, getSubstitutionMap, getUseListeners, getUserComment, hasParameter, init, isParameterLocal, nameForChild, notifyChange, notifyChange, performNotifyChange, 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, 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, flatten, fromEntry, getBooleanParameter, getChild, getChildForPath, getChildNames, getClone, getData, getDataIterator, getDebug, getDebug, getDebugBreak, getEnabled, getFlags, getInheritsFrom, getInheritsFromRef, getIntegerParameter, getKeys, getLogEnabled, getMetamergeConfig, getName, getNamespace, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParameter, getParameter, getParameter, getParameterPropertySource, getParameterRaw, getParent, getPath, getReferences, getScript, getScriptEngine, getStringParameter, getSubstitutionMap, getUseListeners, getUserComment, hasParameter, init, isParameterLocal, nameForChild, notifyChange, notifyChange, 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
 

Field Detail

XT_ASSEMBLYLINE

public static final String XT_ASSEMBLYLINE
Extension --> type mapping

See Also:
Constant Field Values

XT_CONNECTOR

public static final String XT_CONNECTOR
See Also:
Constant Field Values

XT_PARSER

public static final String XT_PARSER
See Also:
Constant Field Values

XT_ATTRMAP

public static final String XT_ATTRMAP
See Also:
Constant Field Values

XT_FUNCTION

public static final String XT_FUNCTION
See Also:
Constant Field Values

XT_SCRIPT

public static final String XT_SCRIPT
See Also:
Constant Field Values

XT_CLS

public static final Class[] XT_CLS

XT_EXT

public static final String[] XT_EXT

MC_URLBASE

public static final String MC_URLBASE
See Also:
Constant Field Values

configObject

protected BaseConfiguration configObject

configError

protected Exception configError
Constructor Detail

MetamergeConfigFS

public MetamergeConfigFS()

MetamergeConfigFS

public MetamergeConfigFS(Hashtable env)
                  throws Exception
Throws:
Exception
Method Detail

getInstance

public static MetamergeConfigFS getInstance(String str)
                                     throws Exception
Throws:
Exception

getInstance

public static MetamergeConfigFS getInstance(String str,
                                            boolean create)
                                     throws Exception
Throws:
Exception

getDefaultConfigObject

public BaseConfiguration getDefaultConfigObject()
                                         throws Exception
Throws:
Exception

setDefaultName

public boolean setDefaultName(String name)
                       throws Exception
Throws:
Exception

getDefaultConfigObject

public BaseConfiguration getDefaultConfigObject(boolean standardName)
                                         throws Exception
Throws:
Exception

findDefaultObject

public Element findDefaultObject()
                          throws Exception
This method cleans the XML config by removing all items except the one configured for this configuration. In particular, this configuration can hold only one single configuration object.

Throws:
Exception

createDefaultObjectInstance

public void createDefaultObjectInstance(Element defaultNode)
                                 throws Exception
Throws:
Exception

commitChanges

public void commitChanges(Object output,
                          boolean isSave)
                   throws Exception
Description copied from class: MetamergeConfigXML
Save XML tree to output stream.

Specified by:
commitChanges in interface MetamergeConfig
Overrides:
commitChanges in class MetamergeConfigXML
Parameters:
output - Null or any object supported by the underlying driver.
isSave - true if this is a permanent save, false if this just saves to e.g. a command window.
Throws:
Exception

getModified

public boolean getModified()
Description copied from class: MetamergeConfigXML
XML Doc needs to be saved if we have dirty objects in our cache or if there has been any successful bind/rebind/unbind calls.

Specified by:
getModified in interface BaseConfiguration
Overrides:
getModified in class MetamergeConfigXML
Returns:
The modified value

bind

public void bind(Object name,
                 Object obj)
          throws Exception
Description copied from interface: MetamergeConfig
Adds a new object to the configuration at the location specified by name

Specified by:
bind in interface MetamergeConfig
Overrides:
bind in class MetamergeConfigXML
Parameters:
name - Name
obj - Configuration Object
Throws:
Exception

rebind

public void rebind(Object name,
                   Object obj)
            throws Exception
Description copied from interface: MetamergeConfig
Adds or replaces a new object to the configuration.

Specified by:
rebind in interface MetamergeConfig
Overrides:
rebind in class MetamergeConfigXML
Parameters:
name - Name
obj - Configuration Object
Throws:
Exception

internalLookup

protected Object internalLookup(Object namex)
                         throws Exception
Description copied from class: MetamergeConfigXML
Called by super's lookup

Overrides:
internalLookup in class MetamergeConfigXML
Throws:
Exception

externalLookup

public Object externalLookup(Object name)
                      throws Exception
Throws:
Exception

getBase

public String getBase()

setBase

public void setBase(String base)

getExtensionFor

public String getExtensionFor(BaseConfiguration config)

getTDIProperties

public TDIProperties getTDIProperties()
                               throws Exception
This method returns the associated TDIProperties object

Specified by:
getTDIProperties in interface MetamergeConfig
Overrides:
getTDIProperties in class MetamergeConfigImpl
Throws:
Exception

convertExternalProperties

protected void convertExternalProperties()
                                  throws Exception
Throws:
Exception

commitVersion

public void commitVersion()
                   throws Exception
Save XML tree to output stream.

Throws:
Exception