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>>
Main
TemplateResolver compilation interception interface.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringMain plugin category forTemplateResolverInterceptorimplementations. -
Method Summary
Modifier and TypeMethodDescriptionThe targetedTemplateResolverContextclass.The targeted value class.default ObjectprocessTemplateBeforeResolverInjection(C context, Object node) Intercept the read template before compiler (i.e.,TemplateResolvers.ofTemplate(TemplateResolverContext, String)starts injecting resolvers.
-
Field Details
-
CATEGORY
Main plugin category forTemplateResolverInterceptorimplementations.- See Also:
-
-
Method Details
-
getValueClass
The targeted value class. -
getContextClass
The targetedTemplateResolverContextclass. -
processTemplateBeforeResolverInjection
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
-