Class AttributePreprocessorImpl
- java.lang.Object
-
- com.sun.enterprise.admin.servermgmt.stringsubs.impl.AttributePreprocessorImpl
-
- All Implemented Interfaces:
AttributePreprocessor
public class AttributePreprocessorImpl extends Object implements AttributePreprocessor
Implementation ofAttributePreprocessor
-
-
Constructor Summary
Constructors Constructor Description AttributePreprocessorImpl(Map<String,String> lookUpMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
substituteAfter(String afterValue)
Process the after value of the change-pair element and retrieve its value.String
substituteBefore(String beforeValue)
Process the before value of the change-pair element and retrieve its value.String
substitutePath(String path)
Process the file name/member entry path.
-
-
-
Method Detail
-
substituteBefore
public String substituteBefore(String beforeValue)
Description copied from interface:AttributePreprocessor
Process the before value of the change-pair element and retrieve its value.Note: A change-pair element is a macro definition that specifies the string to be substituted ("before") and the replacement ("after") value.
E.g. <change-pair id="pair1" before="@JAVA_HOME" after="$JAVA_HOME$"/>- Specified by:
substituteBefore
in interfaceAttributePreprocessor
- Parameters:
beforeValue
- The before value of change-pair.- Returns:
- Substituted String.
- See Also:
ChangePair#getBefore()
-
substituteAfter
public String substituteAfter(String afterValue)
Description copied from interface:AttributePreprocessor
Process the after value of the change-pair element and retrieve its value.Note: A change-pair element is a macro definition that specifies the string to be substituted ("before") and the replacement ("after") value.
E.g. <change-pair id="pair1" before="@JAVA_HOME" after="$JAVA_HOME$"/>- Specified by:
substituteAfter
in interfaceAttributePreprocessor
- Parameters:
afterValue
- The after value of change-pair.- Returns:
- Substituted String.
- See Also:
ChangePair#getAfter()
-
substitutePath
public String substitutePath(String path)
Description copied from interface:AttributePreprocessor
Process the file name/member entry path. The name value of file-entry can contain the substitutable variable for e.g.<file-entry name="$DOMAIN_DIRECTORY$/start.cmd"/>
Path pointing to the domain directory. The value of these variable will be retrieved.Note: A file-entry defines a text file or set of files where substitution has to be performed.
- Specified by:
substitutePath
in interfaceAttributePreprocessor
- Parameters:
path
- The file path.- Returns:
- Substituted String.
- See Also:
FileEntry#getName()
-
-