Class ValueExpressionImpl<T>

java.lang.Object
org.jboss.logmanager.config.ValueExpressionImpl<T>
All Implemented Interfaces:
ValueExpression<T>

class ValueExpressionImpl<T> extends Object implements ValueExpression<T>
  • Field Details

    • expression

      private final String expression
    • resolvedValue

      private final T resolvedValue
  • Constructor Details

    • ValueExpressionImpl

      ValueExpressionImpl(String expression, T resolvedValue)
  • Method Details

    • getResolvedValue

      public T getResolvedValue()
      Description copied from interface: ValueExpression
      The resolved value.

      If this is an expression the resolved value will be the value from a system property or the default value from the expression if the system property is not set.

      If this is not an expression the value returned will be the non-expression value or null if allowed for the property.

      Specified by:
      getResolvedValue in interface ValueExpression<T>
      Returns:
      the resolved value
    • isExpression

      public boolean isExpression()
      Description copied from interface: ValueExpression
      Checks whether this is an expression or not.
      Specified by:
      isExpression in interface ValueExpression<T>
      Returns:
      true if this is an expression, otherwise false
    • getValue

      public String getValue()
      Description copied from interface: ValueExpression
      Gets the value of the value which may or may not be an expression.
      Specified by:
      getValue in interface ValueExpression<T>
      Returns:
      the value
    • toString

      public String toString()
      Specified by:
      toString in interface ValueExpression<T>
      Overrides:
      toString in class Object