public class TemplateFileInstantiator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
m_fileTemplate |
protected java.lang.String |
m_fileToCreate |
protected java.util.Hashtable |
m_replaceMapping |
Constructor and Description |
---|
TemplateFileInstantiator(java.lang.String directoryRootPath, java.lang.String templatefileRelativePath, java.lang.String templateMapfileName, java.lang.String fileToCreateRelativePath, java.lang.String fileNameToCreate, java.util.Hashtable replaceMapping)
Creates a file in the $ORACLE_HOME/ldap/log directory by replacing the Macro String(s) in the template file, fileTemplate, located in $ORACLE_HOME/ldap/odi/conf.
|
TemplateFileInstantiator(java.lang.String directoryRootPath, java.lang.String templatefileRelativePath, java.lang.String templateMapfileName, java.lang.String fileToCreateRelativePath, java.lang.String fileNameToCreate, java.util.Hashtable replaceMapping, java.util.logging.Logger lgr) |
Modifier and Type | Method and Description |
---|---|
void |
CreateInstantiatedfileBasedOnTemplate()
Creates the map file based on a master template file.
|
java.lang.String |
getInstantiatedfileCreated()
Returns the full path of the map file created by a given TemplateFileInstantiator instance.
|
protected java.lang.String m_fileTemplate
protected java.lang.String m_fileToCreate
protected java.util.Hashtable m_replaceMapping
public TemplateFileInstantiator(java.lang.String directoryRootPath, java.lang.String templatefileRelativePath, java.lang.String templateMapfileName, java.lang.String fileToCreateRelativePath, java.lang.String fileNameToCreate, java.util.Hashtable replaceMapping)
oracle_home:
- The orlace_home path that's usually set in environment variable The caller can use it for any home directory.templatefileRelativePath:
- Where the template file is located. Must end with '/'.templatefileName:
- The master map file, such as activeexp.map.masterfileToCreateRelativePath:
- where map file is created. Must end with '/'.fileNameToCreate:
- The map file to be created, for example, activeexp.mapreplaceMapping:
- hashtable with the key being the Macro String in the master map file, for instance, %OIDBASE%, %USERBASE%. The corresponding value is the replacement value.public TemplateFileInstantiator(java.lang.String directoryRootPath, java.lang.String templatefileRelativePath, java.lang.String templateMapfileName, java.lang.String fileToCreateRelativePath, java.lang.String fileNameToCreate, java.util.Hashtable replaceMapping, java.util.logging.Logger lgr)
public java.lang.String getInstantiatedfileCreated()
public void CreateInstantiatedfileBasedOnTemplate() throws java.io.IOException, ParameterException
java.io.IOException
ParameterException