Interface TemplateResolverInterceptor<V,C extends TemplateResolverContext<V,C>>
-
- Type Parameters:
V- type of the value passed to theresolverC- type of the context employed
- All Known Subinterfaces:
EventResolverInterceptor
- All Known Implementing Classes:
EventAdditionalFieldInterceptor,EventRootObjectKeyInterceptor
public interface TemplateResolverInterceptor<V,C extends TemplateResolverContext<V,C>>MainTemplateResolvercompilation interception interface.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCATEGORYMain plugin category forTemplateResolverInterceptorimplementations.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.Class<C>getContextClass()The targetedTemplateResolverContextclass.java.lang.Class<V>getValueClass()The targeted value class.default java.lang.ObjectprocessTemplateBeforeResolverInjection(C context, java.lang.Object node)Intercept the read template before compiler (i.e.,TemplateResolvers.ofTemplate(TemplateResolverContext, String)starts injecting resolvers.
-
-
-
Field Detail
-
CATEGORY
static final java.lang.String CATEGORY
Main plugin category forTemplateResolverInterceptorimplementations.- See Also:
- Constant Field Values
-
-
Method Detail
-
getValueClass
java.lang.Class<V> getValueClass()
The targeted value class.
-
getContextClass
java.lang.Class<C> getContextClass()
The targetedTemplateResolverContextclass.
-
processTemplateBeforeResolverInjection
default java.lang.Object processTemplateBeforeResolverInjection(C context, java.lang.Object node)
Intercept the read template before compiler (i.e.,TemplateResolvers.ofTemplate(TemplateResolverContext, String)starts injecting resolvers.This is the right place to introduce, say, contextual additional fields.
- Parameters:
node- the root object of the read template- Returns:
- the root object of the template to be compiled
-
-