Class JndiLookup
java.lang.Object
org.apache.logging.log4j.core.lookup.AbstractLookup
org.apache.logging.log4j.core.lookup.JndiLookup
- All Implemented Interfaces:
- StrLookup
Looks up keys from JNDI resources.
- 
Field Summary
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs a new instance or throw IllegalStateException if this feature is disabled.
- 
Method SummaryMethods inherited from class org.apache.logging.log4j.core.lookup.AbstractLookupevaluate, lookup
- 
Constructor Details- 
JndiLookuppublic JndiLookup()Constructs a new instance or throw IllegalStateException if this feature is disabled.
 
- 
- 
Method Details- 
lookupLooks up the value of the JNDI resource.- Parameters:
- key- the JNDI resource name to be looked up, may be null
- ignored- The current LogEvent.
- Returns:
- The String value of the JNDI resource.
 
 
-