|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.logging.log4j.core.lookup.AbstractLookup
org.apache.logging.log4j.core.lookup.Interpolator
public class Interpolator
Proxies all the other StrLookup
s.
Field Summary |
---|
Fields inherited from interface org.apache.logging.log4j.core.lookup.StrLookup |
---|
CATEGORY |
Constructor Summary | |
---|---|
Interpolator()
Create the default Interpolator using only Lookups that work without an event. |
|
Interpolator(Map<String,String> properties)
Creates the Interpolator using only Lookups that work without an event and initial properties. |
|
Interpolator(StrLookup defaultLookup)
|
|
Interpolator(StrLookup defaultLookup,
List<String> pluginPackages)
Constructs an Interpolator using a given StrLookup and a list of packages to find Lookup plugins in. |
Method Summary | |
---|---|
String |
lookup(LogEvent event,
String var)
Resolves the specified variable. |
String |
toString()
|
Methods inherited from class org.apache.logging.log4j.core.lookup.AbstractLookup |
---|
lookup |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Interpolator(StrLookup defaultLookup)
public Interpolator(StrLookup defaultLookup, List<String> pluginPackages)
defaultLookup
- the default StrLookup to use as a fallbackpluginPackages
- a list of packages to scan for Lookup pluginspublic Interpolator()
public Interpolator(Map<String,String> properties)
Method Detail |
---|
public String lookup(LogEvent event, String var)
event
- The current LogEvent or null.var
- the name of the variable whose value is to be looked up
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2015 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.