Interface Translator

All Known Implementing Classes:
VariableResolver

public interface Translator
Used to perform string pre-processing on values found in the configuration file.

This hook allows applications to support variable expansions like Ant in the configuration file.

Author:
Kohsuke Kawaguchi
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Translator
    Translator that does nothing.
    static final Translator
    A translator that does translation from the system properties.
  • Method Summary

    Modifier and Type
    Method
    Description
     
  • Field Details

    • NOOP

      static final Translator NOOP
      Translator that does nothing.
    • SYS_PROP_TR

      static final Translator SYS_PROP_TR
      A translator that does translation from the system properties. Thus, any reference to an existing System Property like "${name}" will be replaced by its value, i.e. System.getProperty("name"). All found references are translated. If a System Property is not defined, its reference is returned verbatim. No escape sequences are handled.
  • Method Details