Package com.ibm.di.config.base
Class MetamergeConfigImpl
- java.lang.Object
-
- com.ibm.di.config.base.BaseConfigurationImpl
-
- com.ibm.di.config.base.MetamergeConfigImpl
-
- All Implemented Interfaces:
BaseConfiguration,MetamergeConfig,MetamergeConfigChangeListener,MetamergeFolder,java.io.Serializable
- Direct Known Subclasses:
MetamergeConfigXML
public class MetamergeConfigImpl extends BaseConfigurationImpl implements MetamergeConfig
ImplementsMetamergeConfig. This implementation stores the configuration objects in a file using a private format.- See Also:
MetamergeConfig, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Hashtable<java.lang.String,java.lang.String>classMapstatic java.lang.StringDEFAULT_FOLDER_IMPLstatic java.lang.String[]DEFAULT_FOLDER_NAMESprotected java.util.Hashtableenvprotected ExternalPropertiesDelegatorexternalPropertiesDelegatorstatic Loglogger-
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.MetamergeConfig
ASSEMBLYLINE_FOLDER, ATTRIBUTEMAP_FOLDER, CONFIG_FOLDER, CONNECTOR_FOLDER, DEFAULT_ASSEMBLYLINE_FOLDER, DEFAULT_ATTRIBUTEMAP_FOLDER, DEFAULT_CONFIG_FOLDER, DEFAULT_CONNECTOR_FOLDER, DEFAULT_EXTPROP_FOLDER, DEFAULT_EXTPROP_NAME, DEFAULT_FORM_FOLDER, DEFAULT_FUNCTION_FOLDER, DEFAULT_LIBRARY_FOLDER, DEFAULT_LIBS_FOLDER, DEFAULT_LOGGER_FOLDER, DEFAULT_NAMESPACE_FOLDER, DEFAULT_PARSER_FOLDER, DEFAULT_PROPERTY_FOLDER, DEFAULT_PROPSTORE_FOLDER, DEFAULT_SCHEDULER_FOLDER, DEFAULT_SCRIPT_FOLDER, DEFAULT_SEQUENCE_FOLDER, DEFAULT_SERVER_AUTOSTART, DEFAULT_SERVER_FOLDER, DEFAULT_SERVER_INSTANCE_PROPERTIES, DEFAULT_SERVER_LOG, DEFAULT_SERVER_TOMBSTONES, DEFAULT_SOLUTION_INTERFACE, EXTPROP_FOLDER, FORM_FOLDER, FUNCTION_FOLDER, LIBRARY_FOLDER, LIBS_FOLDER, LOGGER_FOLDER, LOGGING_FOLDER, NAMESPACE_FOLDER, PARSER_FOLDER, PROPERTY_FOLDER, PROPSTORE_FOLDER, SCHEDULER_FOLDER, SCRIPT_FOLDER, SEQUENCE_FOLDER
-
-
Constructor Summary
Constructors Constructor Description MetamergeConfigImpl()MetamergeConfigImpl(java.util.Hashtable<java.lang.String,java.lang.Object> env)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDefaultFolders()java.lang.ObjectaddNameComponent(java.lang.Object name, java.lang.String component, boolean prefix)Adds a name component to the NameComponent attribute of the MetamergeConfig objectvoidbind(java.lang.Object name, java.lang.Object obj)Adds a new object to the configuration at the location specified by namevoidcloseConfig()Close the drivervoidcommitChanges(java.lang.Object output)Tells the configuration driver to save all modified objects.voidcommitChanges(java.lang.Object output, boolean isSave)Tells the configuration driver to save all modified objects.voidcommitChangesNoEncryption(java.lang.Object output)Writes the configuration to output without server encryption of protected parameters.voidcopy(BaseConfiguration input, java.lang.Object destination, boolean copyRefs)Copies a configuration object into this configuration.MetamergeFoldercreateFolder(java.lang.Object name)This method creates a sub-folder in this folder with the given name.AssemblyLineConfiggetAssemblyLine(java.lang.Object name)Returns the AssemblyLineConfig object for the named assemblyline.AttributeMapConfiggetAttributeMap(java.lang.Object name)Returns the AttributeMapConfig object for the named map.java.lang.StringgetConfigVersion()ConnectorConfiggetConnector(java.lang.Object name)Returns the ConnectorConfig object for the named connector.MetamergeFoldergetDefaultFolder(int folder)Returns the MetamergeFolder object for the default folder named by folder.java.lang.StringgetDirectory()Returns the directory this config is placed in.java.lang.ObjectgetDriverParameter(java.lang.Object name)This method returns the value for a given driver parameter.BaseConfigurationgetDriverParameters()This method returns the driver parameters as a BaseConfiguration object.ExternalPropertiesConfiggetExternalProperties()Returns the external properties delegator object for this configuration.ExternalPropertiesConfiggetExternalProperties(java.lang.Object name)Returns the ExternalPropertiesConfig object for the named external properties object.FileConfiggetFileConfig()FunctionConfiggetFunction(java.lang.Object name)Returns the FunctionConfig object for the named function.java.lang.String[]getNames()This method returns an array of names contained in this folder.NamespaceConfiggetNamespace(java.lang.Object name)Returns the NamespaceConfig object for the named namespace.ParserConfiggetParser(java.lang.Object name)Returns the ParserConfig object for the named parser.protected java.lang.StringgetPassword()ScriptConfiggetScript(java.lang.Object name)Returns the ScriptConfig object for the named script.SequenceConfiggetSequence(java.lang.Object name)Returns the SequenceConfig object for the named sequence.SolutionInterfacegetSolutionInterface()This method returns the SolutionInterface object for this configuration.TDIPropertiesgetTDIProperties()This method returns the associated TDIProperties objectstatic java.util.TreeMapgetTreeMap(BaseConfiguration base, java.lang.Object key)static java.util.VectorgetVector(BaseConfiguration base, java.lang.Object key)booleanhasPassword()protected voidinitializeClassMap()voidinitializeConfig()Initialize the drivervoidinstantiateAllObjects()This method iterates the entire configuration to create java objects from the config drivers underlying store.voidinstantiateAllObjects(MetamergeFolder folder)protected java.lang.ObjectinternalLookup(java.lang.Object name)booleanisCommittable()Returns true if the configuration driver implements the commitChanges method and the current value for PROVIDER_URL is writable.booleanisModTSEnabled()Returns the value of modTSEnabled For internal use.booleanisReadOnly()Returns true if this configuration cannot be modified.booleanisRemote()java.util.Enumerationlist()Returns a list of javax.naming.Binding objects for each of this folders child entries.java.util.Enumerationlist(java.lang.Object name)Returns an enumeration of the immediate children of this nodevoidlogmsg(java.lang.String msg)java.lang.Objectlookup(java.lang.Object name)Searches this configuration for a named node.java.lang.ObjectlookupInFolder(java.lang.String folder, java.lang.Object name)BaseConfigurationnewInstanceOf(int type)Create new instance of object<T extends BaseConfiguration>
TnewInstanceOf(java.lang.Class<T> cls)This method returns a new instance of the object type.BaseConfigurationnewInstanceOf(java.lang.Object typeName)This method returns a new instance of the object type specified by typeName.voidrebind(java.lang.Object name, java.lang.Object obj)Adds or replaces a new object to the configuration.voidrename(java.lang.Object name, java.lang.Object newname)Renames an object.voidsetDriverParameter(java.lang.Object name, java.lang.Object value)This method sets a driver parameter.voidsetDriverParameters(BaseConfiguration driverParams)This method sets the driver parameters from a BaseConfiguration object.voidsetFileConfig(FileConfig aFileConfig)voidsetModTSEnabled(boolean value)Sets the value of modTSEnabled For internal use.voidsetOutput(java.lang.Object output)Changes the output to wich the configuration driver writes its configuration.booleanshouldEncryptProtected()Return true if protected parameters should be encrypted with server key.java.lang.StringtoString()Answers a string containing the name of the config.voidunbind(java.lang.Object name)Removes a named object from this configuration.booleanuseEncryption()-
Methods inherited from class com.ibm.di.config.base.BaseConfigurationImpl
addListener, configurationChanged, deepClone, detachFromParent, expandPropertyValue, expandPropertyValue, flatten, fromEntry, getBooleanParameter, getChild, getChildForPath, getChildNames, getClone, 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, init, 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, 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, getClone, 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, init, 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
-
-
-
-
Field Detail
-
logger
public static final Log logger
-
env
protected java.util.Hashtable env
-
classMap
protected java.util.Hashtable<java.lang.String,java.lang.String> classMap
-
externalPropertiesDelegator
protected ExternalPropertiesDelegator externalPropertiesDelegator
-
DEFAULT_FOLDER_NAMES
public static final java.lang.String[] DEFAULT_FOLDER_NAMES
-
DEFAULT_FOLDER_IMPL
public static final java.lang.String DEFAULT_FOLDER_IMPL
- See Also:
- Constant Field Values
-
-
Method Detail
-
useEncryption
public boolean useEncryption()
-
hasPassword
public boolean hasPassword()
-
getPassword
protected java.lang.String getPassword()
-
initializeConfig
public void initializeConfig() throws java.lang.ExceptionDescription copied from interface:MetamergeConfigInitialize the driver- Specified by:
initializeConfigin interfaceMetamergeConfig- Throws:
java.lang.Exception
-
addDefaultFolders
public void addDefaultFolders() throws java.lang.Exception- Throws:
java.lang.Exception
-
closeConfig
public void closeConfig() throws java.lang.ExceptionDescription copied from interface:MetamergeConfigClose the driver- Specified by:
closeConfigin interfaceMetamergeConfig- Throws:
java.lang.Exception
-
initializeClassMap
protected void initializeClassMap()
-
internalLookup
protected java.lang.Object internalLookup(java.lang.Object name) throws java.lang.Exception- Throws:
java.lang.Exception
-
commitChanges
public void commitChanges(java.lang.Object output) throws java.lang.ExceptionDescription copied from interface:MetamergeConfigTells the configuration driver to save all modified objects. This has the same effect as commitChanges( output, true)- Specified by:
commitChangesin interfaceMetamergeConfig- Parameters:
output- Null or any object supported by the underlying driver.- Throws:
java.lang.Exception
-
commitChangesNoEncryption
public void commitChangesNoEncryption(java.lang.Object output) throws java.lang.ExceptionDescription copied from interface:MetamergeConfigWrites the configuration to output without server encryption of protected parameters. The output parameter may be any object understood by the driver and should be a temporary output destination, e.g. on another server.- Specified by:
commitChangesNoEncryptionin interfaceMetamergeConfig- Parameters:
output- Any object supported by the underlying driver.- Throws:
java.lang.Exception
-
commitChanges
public void commitChanges(java.lang.Object output, boolean isSave) throws java.lang.ExceptionDescription copied from interface:MetamergeConfigTells the configuration driver to save all modified objects. Not all config drivers support this method. Typically drivers that work with streams (e.g. files) will implement this method to flush its cache to disk. The output parameter may be any object understood by the driver and serves as a temporary output destination. Use the setOutput() to permanently change the output URL for the driver.- Specified by:
commitChangesin interfaceMetamergeConfig- 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:
java.lang.Exception
-
isCommittable
public boolean isCommittable()
Description copied from interface:MetamergeConfigReturns true if the configuration driver implements the commitChanges method and the current value for PROVIDER_URL is writable.- Specified by:
isCommittablein interfaceMetamergeConfig- Returns:
- The committable state
-
isReadOnly
public boolean isReadOnly()
Description copied from interface:MetamergeConfigReturns true if this configuration cannot be modified.- Specified by:
isReadOnlyin interfaceMetamergeConfig- Returns:
- The readOnly value
-
copy
public void copy(BaseConfiguration input, java.lang.Object destination, boolean copyRefs) throws java.lang.Exception
Description copied from interface:MetamergeConfigCopies a configuration object into this configuration. This differs from the bind/rebind method in that all copied objects are stored in a different branch than the original objects. Also, the copied objects' referenced objects may be copied in as well.- Specified by:
copyin interfaceMetamergeConfig- Parameters:
input- Configuration object to be copieddestination- The name of the destination object (javax.naming.Name or String)copyRefs- If true, copy referenced objects as well (e.g. all inherited objects)- Throws:
java.lang.Exception
-
createFolder
public MetamergeFolder createFolder(java.lang.Object name) throws java.lang.Exception
Description copied from interface:MetamergeFolderThis method creates a sub-folder in this folder with the given name.- Specified by:
createFolderin interfaceMetamergeFolder- Parameters:
name- Name of sub-folder- Returns:
- The MetamergeFolder object representing the new sub-folder
- Throws:
java.lang.Exception
-
setOutput
public void setOutput(java.lang.Object output) throws java.lang.ExceptionDescription copied from interface:MetamergeConfigChanges the output to wich the configuration driver writes its configuration. This is different from calling commitChanges(output, false) where the output parameter is temporary (e.g. SaveCopyAs).- Specified by:
setOutputin interfaceMetamergeConfig- Parameters:
output- The new output value- Throws:
java.lang.Exception
-
getDefaultFolder
public MetamergeFolder getDefaultFolder(int folder) throws java.lang.Exception
Description copied from interface:MetamergeConfigReturns the MetamergeFolder object for the default folder named by folder.- Specified by:
getDefaultFolderin interfaceMetamergeConfig- Parameters:
folder- The default folder constant- Returns:
- The Folder object
- Throws:
java.lang.Exception
-
lookupInFolder
public java.lang.Object lookupInFolder(java.lang.String folder, java.lang.Object name) throws java.lang.Exception- Throws:
java.lang.Exception
-
lookup
public java.lang.Object lookup(java.lang.Object name) throws java.lang.ExceptionDescription copied from interface:MetamergeConfigSearches this configuration for a named node.- Specified by:
lookupin interfaceMetamergeConfig- Parameters:
name- The name to lookup- Returns:
- The configuration object found
- Throws:
java.lang.Exception
-
list
public java.util.Enumeration list(java.lang.Object name) throws java.lang.ExceptionDescription copied from interface:MetamergeConfigReturns an enumeration of the immediate children of this node- Specified by:
listin interfaceMetamergeConfig- Parameters:
name- The folder name to list- Returns:
- Enumeration object of javax.naming.Binding objects with names and objects.
- Throws:
java.lang.Exception
-
list
public java.util.Enumeration list() throws java.lang.ExceptionDescription 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
-
unbind
public void unbind(java.lang.Object name) throws java.lang.ExceptionDescription copied from interface:MetamergeConfigRemoves a named object from this configuration.- Specified by:
unbindin interfaceMetamergeConfig- Parameters:
name- The object name to remove- Throws:
java.lang.Exception
-
bind
public void bind(java.lang.Object name, java.lang.Object obj) throws java.lang.ExceptionDescription copied from interface:MetamergeConfigAdds a new object to the configuration at the location specified by name- Specified by:
bindin interfaceMetamergeConfig- Parameters:
name- Nameobj- Configuration Object- Throws:
java.lang.Exception
-
rebind
public void rebind(java.lang.Object name, java.lang.Object obj) throws java.lang.ExceptionDescription copied from interface:MetamergeConfigAdds or replaces a new object to the configuration.- Specified by:
rebindin interfaceMetamergeConfig- Parameters:
name- Nameobj- Configuration Object- Throws:
java.lang.Exception
-
rename
public void rename(java.lang.Object name, java.lang.Object newname) throws java.lang.ExceptionDescription copied from interface:MetamergeConfigRenames an object. If new name is a simple name then location is unchanged, otherwise the object is moved.- Specified by:
renamein interfaceMetamergeConfig- Parameters:
name- Current Namenewname- New name- Throws:
java.lang.Exception
-
addNameComponent
public java.lang.Object addNameComponent(java.lang.Object name, java.lang.String component, boolean prefix)Description copied from interface:MetamergeConfigAdds a name component to the NameComponent attribute of the MetamergeConfig object- Specified by:
addNameComponentin interfaceMetamergeConfig- Parameters:
name- Null or existing javax.naming.Name objectcomponent- The component to add to nameprefix- If true, component is inserted at beginning of name- Returns:
- The provided name or a new instance of javax.naming.Name
-
getVector
public static java.util.Vector getVector(BaseConfiguration base, java.lang.Object key)
-
getTreeMap
public static java.util.TreeMap getTreeMap(BaseConfiguration base, java.lang.Object key)
-
getAssemblyLine
public AssemblyLineConfig getAssemblyLine(java.lang.Object name) throws java.lang.Exception
Description copied from interface:MetamergeConfigReturns the AssemblyLineConfig object for the named assemblyline. Name can either be a simple name or a fully qualified name. For simple names, the config driver will lookup the assemblyline in its default folder for assemblylines.- Specified by:
getAssemblyLinein interfaceMetamergeConfig- Parameters:
name- Name- Returns:
- The configuration object
- Throws:
java.lang.Exception
-
getSequence
public SequenceConfig getSequence(java.lang.Object name) throws java.lang.Exception
Description copied from interface:MetamergeConfigReturns the SequenceConfig object for the named sequence. Name can either be a simple name or a fully qualified name.- Specified by:
getSequencein interfaceMetamergeConfig- Parameters:
name- The name of the sequence- Returns:
- The configuration object, or null if no match is found
- Throws:
java.lang.Exception
-
getConnector
public ConnectorConfig getConnector(java.lang.Object name) throws java.lang.Exception
Description copied from interface:MetamergeConfigReturns the ConnectorConfig object for the named connector. Name can either be a simple name or a fully qualified name. For simple names, the config driver will lookup the connector in its default folder for connectors.- Specified by:
getConnectorin interfaceMetamergeConfig- Parameters:
name- Name- Returns:
- The configuration object
- Throws:
java.lang.Exception
-
getParser
public ParserConfig getParser(java.lang.Object name) throws java.lang.Exception
Description copied from interface:MetamergeConfigReturns the ParserConfig object for the named parser. Name can either be a simple name or a fully qualified name. For simple names, the config driver will lookup the parser in its default folder for parsers.- Specified by:
getParserin interfaceMetamergeConfig- Parameters:
name- Name- Returns:
- The configuration object
- Throws:
java.lang.Exception
-
getScript
public ScriptConfig getScript(java.lang.Object name) throws java.lang.Exception
Description copied from interface:MetamergeConfigReturns the ScriptConfig object for the named script. Name can either be a simple name or a fully qualified name. For simple names, the config driver will lookup the script in its default folder for scripts.- Specified by:
getScriptin interfaceMetamergeConfig- Parameters:
name- Name- Returns:
- The configuration object
- Throws:
java.lang.Exception
-
getFunction
public FunctionConfig getFunction(java.lang.Object name) throws java.lang.Exception
Description copied from interface:MetamergeConfigReturns the FunctionConfig object for the named function. Name can either be a simple name or a fully qualified name. For simple names, the config driver will lookup the script in its default folder for functions.- Specified by:
getFunctionin interfaceMetamergeConfig- Parameters:
name- Name- Returns:
- The configuration object
- Throws:
java.lang.Exception
-
getAttributeMap
public AttributeMapConfig getAttributeMap(java.lang.Object name) throws java.lang.Exception
Description copied from interface:MetamergeConfigReturns the AttributeMapConfig object for the named map. Name can either be a simple name or a fully qualified name. For simple names, the config driver will lookup the map in its default folder for maps.- Specified by:
getAttributeMapin interfaceMetamergeConfig- Parameters:
name- Name- Returns:
- The configuration object
- Throws:
java.lang.Exception
-
getNamespace
public NamespaceConfig getNamespace(java.lang.Object name) throws java.lang.Exception
Description copied from interface:MetamergeConfigReturns the NamespaceConfig object for the named namespace. Name can either be a simple name or a fully qualified name. For simple names, the config driver will lookup the namespace in its default folder for namespaces.- Specified by:
getNamespacein interfaceMetamergeConfig- Parameters:
name- Name- Returns:
- The configuration object
- Throws:
java.lang.Exception
-
newInstanceOf
public BaseConfiguration newInstanceOf(int type) throws java.lang.Exception
Create new instance of object- Specified by:
newInstanceOfin interfaceMetamergeConfig- Parameters:
type- The object type to create- Returns:
- The newly created object.
- Throws:
java.lang.Exception
-
newInstanceOf
public BaseConfiguration newInstanceOf(java.lang.Object typeName) throws java.lang.Exception
Description copied from interface:MetamergeConfigThis method returns a new instance of the object type specified by typeName. Use the default folder names constants to denote the type. The new object is not added to the configuration.- Specified by:
newInstanceOfin interfaceMetamergeConfig- Parameters:
typeName- The object type to create.- Returns:
- The newly created object.
- Throws:
java.lang.Exception
-
newInstanceOf
public <T extends BaseConfiguration> T newInstanceOf(java.lang.Class<T> cls) throws java.lang.Exception
Description copied from interface:MetamergeConfigThis method returns a new instance of the object type. Instead of using folder names, use interfaces to specify what you need. The new object is not added to the configuration.- Specified by:
newInstanceOfin interfaceMetamergeConfig- Returns:
- The newly created instance.
- Throws:
java.lang.Exception
-
toString
public java.lang.String toString()
Description copied from class:BaseConfigurationImplAnswers a string containing the name of the config.- Overrides:
toStringin classBaseConfigurationImpl- Returns:
- a printable representation of the name
-
getExternalProperties
public ExternalPropertiesConfig getExternalProperties() throws java.lang.Exception
Returns the external properties delegator object for this configuration.- Specified by:
getExternalPropertiesin interfaceMetamergeConfig- Returns:
- The ExternalPropertiesConfig value
- Throws:
java.lang.Exception
-
getExternalProperties
public ExternalPropertiesConfig getExternalProperties(java.lang.Object name) throws java.lang.Exception
Returns the ExternalPropertiesConfig object for the named external properties object. Name can either be a simple name or a fully qualified name. For simple names, the config driver will lookup the object in the default folder for external properties.- Specified by:
getExternalPropertiesin interfaceMetamergeConfig- Parameters:
name- The external property object name- Returns:
- The ExternalPropertiesConfig object
- Throws:
java.lang.Exception
-
logmsg
public void logmsg(java.lang.String msg)
-
getDriverParameters
public BaseConfiguration getDriverParameters() throws java.lang.Exception
This method returns the driver parameters as a BaseConfiguration object.- Specified by:
getDriverParametersin interfaceMetamergeConfig- Returns:
- The newly created object.
- Throws:
java.lang.Exception
-
setDriverParameters
public void setDriverParameters(BaseConfiguration driverParams) throws java.lang.Exception
This method sets the driver parameters from a BaseConfiguration object.- Specified by:
setDriverParametersin interfaceMetamergeConfig- Parameters:
driverParams- The driver parameters- Throws:
java.lang.Exception
-
getDriverParameter
public java.lang.Object getDriverParameter(java.lang.Object name) throws java.lang.ExceptionThis method returns the value for a given driver parameter.- Specified by:
getDriverParameterin interfaceMetamergeConfig- Parameters:
name- The name of the driver parameter to retrieve.- Returns:
- The driver parameter value
- Throws:
java.lang.Exception
-
setDriverParameter
public void setDriverParameter(java.lang.Object name, java.lang.Object value) throws java.lang.ExceptionThis method sets a driver parameter.- Specified by:
setDriverParameterin interfaceMetamergeConfig- Parameters:
name- The driver parameter namevalue- The driver parameter value- Throws:
java.lang.Exception
-
setFileConfig
public void setFileConfig(FileConfig aFileConfig)
-
getFileConfig
public FileConfig getFileConfig()
-
isRemote
public boolean isRemote()
- Specified by:
isRemotein interfaceMetamergeConfig
-
instantiateAllObjects
public void instantiateAllObjects() throws java.lang.ExceptionThis method iterates the entire configuration to create java objects from the config drivers underlying store. This is needed when all references to other namespaces must be resolved (system and others).- Specified by:
instantiateAllObjectsin interfaceMetamergeConfig- Throws:
java.lang.Exception
-
instantiateAllObjects
public void instantiateAllObjects(MetamergeFolder folder) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getTDIProperties
public TDIProperties getTDIProperties() throws java.lang.Exception
This method returns the associated TDIProperties object- Specified by:
getTDIPropertiesin interfaceMetamergeConfig- Throws:
java.lang.Exception
-
getSolutionInterface
public SolutionInterface getSolutionInterface()
Description copied from interface:MetamergeConfigThis method returns the SolutionInterface object for this configuration.- Specified by:
getSolutionInterfacein interfaceMetamergeConfig
-
getConfigVersion
public java.lang.String getConfigVersion()
- Specified by:
getConfigVersionin interfaceMetamergeConfig- Returns:
- The version of the configuration. e.g. "6.1.1", "7.0", "7.1", etc.
-
getDirectory
public java.lang.String getDirectory()
Description copied from interface:MetamergeConfigReturns the directory this config is placed in. If nothing can be determined, returns "."- Specified by:
getDirectoryin interfaceMetamergeConfig- Returns:
- The directory this config is placed in.
-
setModTSEnabled
public void setModTSEnabled(boolean value)
Description copied from interface:MetamergeConfigSets the value of modTSEnabled For internal use.- Specified by:
setModTSEnabledin interfaceMetamergeConfig- Parameters:
value- - If true, allows time stamps to be automatically modified
-
isModTSEnabled
public boolean isModTSEnabled()
Description copied from interface:MetamergeConfigReturns the value of modTSEnabled For internal use.- Specified by:
isModTSEnabledin interfaceMetamergeConfig- Returns:
- true if time stamps are currently allowed to be automatically modified
-
shouldEncryptProtected
public boolean shouldEncryptProtected()
Description copied from interface:MetamergeConfigReturn true if protected parameters should be encrypted with server key.- Specified by:
shouldEncryptProtectedin interfaceMetamergeConfig
-
-