Class EventResolverStringSubstitutor
- java.lang.Object
-
- org.apache.logging.log4j.layout.template.json.resolver.EventResolverStringSubstitutor
-
- All Implemented Interfaces:
TemplateResolverStringSubstitutor<LogEvent>
public final class EventResolverStringSubstitutor extends java.lang.Object implements TemplateResolverStringSubstitutor<LogEvent>
TemplateResolverStringSubstitutor
specialized forLogEvent
s.
-
-
Field Summary
Fields Modifier and Type Field Description private StrSubstitutor
substitutor
-
Constructor Summary
Constructors Constructor Description EventResolverStringSubstitutor(StrSubstitutor substitutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StrSubstitutor
getInternalSubstitutor()
boolean
isStable()
A substitutor is stable if the replacement doesn't vary with the provided value.java.lang.String
replace(LogEvent logEvent, java.lang.String source)
-
-
-
Field Detail
-
substitutor
private final StrSubstitutor substitutor
-
-
Constructor Detail
-
EventResolverStringSubstitutor
public EventResolverStringSubstitutor(StrSubstitutor substitutor)
-
-
Method Detail
-
getInternalSubstitutor
public StrSubstitutor getInternalSubstitutor()
- Specified by:
getInternalSubstitutor
in interfaceTemplateResolverStringSubstitutor<LogEvent>
-
isStable
public boolean isStable()
Description copied from interface:TemplateResolverStringSubstitutor
A substitutor is stable if the replacement doesn't vary with the provided value. In such a case, value is always set tonull
.- Specified by:
isStable
in interfaceTemplateResolverStringSubstitutor<LogEvent>
-
replace
public java.lang.String replace(LogEvent logEvent, java.lang.String source)
- Specified by:
replace
in interfaceTemplateResolverStringSubstitutor<LogEvent>
-
-