@Plugin(name="EventAdditionalFieldInterceptor", category="JsonTemplateResolverInterceptor") public class EventAdditionalFieldInterceptor extends Object implements EventResolverInterceptor
additional fields after event template read.CATEGORY| Modifier and Type | Method and Description |
|---|---|
static EventAdditionalFieldInterceptor |
getInstance() |
Object |
processTemplateBeforeResolverInjection(EventResolverContext context,
Object node)
Intercept the read template before compiler (i.e.,
TemplateResolvers.ofTemplate(TemplateResolverContext, String)
starts injecting resolvers. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContextClass, getValueClass@PluginFactory public static EventAdditionalFieldInterceptor getInstance()
public Object processTemplateBeforeResolverInjection(EventResolverContext context, Object node)
TemplateResolverInterceptorTemplateResolvers.ofTemplate(TemplateResolverContext, String)
starts injecting resolvers.
This is the right place to introduce, say, contextual additional fields.
processTemplateBeforeResolverInjection in interface TemplateResolverInterceptor<LogEvent,EventResolverContext>node - the root object of the read templateCopyright © 1999-2022 The 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.