Class DefaultLookupResult

java.lang.Object
org.apache.logging.log4j.core.lookup.DefaultLookupResult
All Implemented Interfaces:
LookupResult

final class DefaultLookupResult extends Object implements LookupResult
Default internal implementation of LookupResult.
  • Field Details

    • value

      private final String value
  • Constructor Details

    • DefaultLookupResult

      DefaultLookupResult(String value)
  • Method Details

    • value

      public String value()
      Description copied from interface: LookupResult
      Value of the lookup result. Never null.
      Specified by:
      value in interface LookupResult
    • isLookupEvaluationAllowedInValue

      public boolean isLookupEvaluationAllowedInValue()
      Description copied from interface: LookupResult
      True if the LookupResult.value() should be re-evaluated for other lookups. This is used by PropertiesLookup to allow properties to be evaluated against other properties, because the configuration properties are completely trusted and designed with lookups in mind. It is unsafe to return true in most cases because it may allow unintended lookups to evaluate other lookups.
      Specified by:
      isLookupEvaluationAllowedInValue in interface LookupResult
    • toString

      public String toString()
      Overrides:
      toString in class Object