Class TelegramTemplateProcessorInterceptor
java.lang.Object
io.github.yvasyliev.forwarder.telegram.thymeleaf.TelegramTemplateProcessorInterceptor
An AspectJ interceptor that customizes the Thymeleaf template context before processing templates.
It applies a list of
TemplateContextCustomizer instances to modify the context as needed.-
Constructor Summary
ConstructorsConstructorDescriptionTelegramTemplateProcessorInterceptor(List<TemplateContextCustomizer> contextCustomizers) -
Method Summary
Modifier and TypeMethodDescriptionvoidcustomizeContext(TemplateContext templateContext) Intercepts the template processing pointcut and customizes the Thymeleaf context.
-
Constructor Details
-
TelegramTemplateProcessorInterceptor
-
-
Method Details
-
customizeContext
Intercepts the template processing pointcut and customizes the Thymeleaf context.- Parameters:
templateContext- the template context containing the Thymeleaf context to be customized
-