V
- type of the value passed to the resolver
C
- type of the context employedpublic interface TemplateResolverInterceptor<V,C extends org.apache.logging.log4j.layout.template.json.resolver.TemplateResolverContext<V,C>>
TemplateResolver
compilation interception interface.Modifier and Type | Field and Description |
---|---|
static String |
CATEGORY
Main plugin category for
TemplateResolverInterceptor implementations. |
Modifier and Type | Method and Description |
---|---|
Class<C> |
getContextClass()
The targeted
TemplateResolverContext class. |
Class<V> |
getValueClass()
The targeted value class.
|
default Object |
processTemplateBeforeResolverInjection(C context,
Object node)
Intercept the read template before compiler (i.e.,
TemplateResolvers.ofTemplate(TemplateResolverContext, String)
starts injecting resolvers. |
static final String CATEGORY
TemplateResolverInterceptor
implementations.default Object processTemplateBeforeResolverInjection(C context, Object node)
TemplateResolvers.ofTemplate(TemplateResolverContext, String)
starts injecting resolvers.
This is the right place to introduce, say, contextual additional fields.
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.