Class AttributePreprocessorImpl
java.lang.Object
com.sun.enterprise.admin.servermgmt.stringsubs.impl.AttributePreprocessorImpl
- All Implemented Interfaces:
AttributePreprocessor
Implementation of
AttributePreprocessor-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsubstituteAfter(String afterValue) Process the after value of the change-pair element and retrieve its value.substituteBefore(String beforeValue) Process the before value of the change-pair element and retrieve its value.substitutePath(String path) Process the file name/member entry path.
-
Constructor Details
-
AttributePreprocessorImpl
-
-
Method Details
-
substituteBefore
Description copied from interface:AttributePreprocessorProcess 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:
substituteBeforein interfaceAttributePreprocessor- Parameters:
beforeValue- The before value of change-pair.- Returns:
- Substituted String.
- See Also:
-
ChangePair#getBefore()
-
substituteAfter
Description copied from interface:AttributePreprocessorProcess 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:
substituteAfterin interfaceAttributePreprocessor- Parameters:
afterValue- The after value of change-pair.- Returns:
- Substituted String.
- See Also:
-
ChangePair#getAfter()
-
substitutePath
Description copied from interface:AttributePreprocessorProcess 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:
substitutePathin interfaceAttributePreprocessor- Parameters:
path- The file path.- Returns:
- Substituted String.
- See Also:
-
FileEntry#getName()
-