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 of AttributePreprocessor
  • Constructor Details

    • AttributePreprocessorImpl

      public AttributePreprocessorImpl(Map<String,String> lookUpMap)
  • Method Details

    • 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 interface AttributePreprocessor
      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 interface AttributePreprocessor
      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 interface AttributePreprocessor
      Parameters:
      path - The file path.
      Returns:
      Substituted String.
      See Also:
      • FileEntry#getName()