Class DefaultLookupResult
- java.lang.Object
-
- org.apache.logging.log4j.core.lookup.DefaultLookupResult
-
- All Implemented Interfaces:
LookupResult
final class DefaultLookupResult extends java.lang.Object implements LookupResult
Default internal implementation ofLookupResult
.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
value
-
Constructor Summary
Constructors Constructor Description DefaultLookupResult(java.lang.String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isLookupEvaluationAllowedInValue()
True if theLookupResult.value()
should be re-evaluated for other lookups.java.lang.String
toString()
java.lang.String
value()
Value of the lookup result.
-
-
-
Method Detail
-
value
public java.lang.String value()
Description copied from interface:LookupResult
Value of the lookup result. Never null.- Specified by:
value
in interfaceLookupResult
-
isLookupEvaluationAllowedInValue
public boolean isLookupEvaluationAllowedInValue()
Description copied from interface:LookupResult
True if theLookupResult.value()
should be re-evaluated for other lookups. This is used byPropertiesLookup
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 interfaceLookupResult
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-