Class DefaultLookupResult
java.lang.Object
org.apache.logging.log4j.core.lookup.DefaultLookupResult
- All Implemented Interfaces:
LookupResult
Default internal implementation of
LookupResult.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTrue if theLookupResult.value()should be re-evaluated for other lookups.toString()value()Value of the lookup result.
-
Field Details
-
value
-
-
Constructor Details
-
DefaultLookupResult
DefaultLookupResult(String value)
-
-
Method Details
-
value
Description copied from interface:LookupResultValue of the lookup result. Never null.- Specified by:
valuein interfaceLookupResult
-
isLookupEvaluationAllowedInValue
public boolean isLookupEvaluationAllowedInValue()Description copied from interface:LookupResultTrue if theLookupResult.value()should be re-evaluated for other lookups. This is used byPropertiesLookupto 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:
isLookupEvaluationAllowedInValuein interfaceLookupResult
-
toString
-