Module org.elasticsearch.server
Interface TemplateDecoratorProvider
- All Superinterfaces:
Supplier<Template.TemplateDecorator>
SPI service interface to modify templates in Stateless mode.
Note: currently decorators are not applied in any particular order.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic Template.TemplateDecoratorGet the singletonTemplate.TemplateDecoratorinstance.static voidinitOnce(List<? extends TemplateDecoratorProvider> providers) Initialize the singletonTemplate.TemplateDecoratorinstance from the given list of providers.
-
Field Details
-
TEMPLATE_DECORATOR
-
-
Method Details
-
getInstance
Get the singletonTemplate.TemplateDecoratorinstance. Initialization is done during node construction and must have happened before. -
initOnce
Initialize the singletonTemplate.TemplateDecoratorinstance from the given list of providers. This method must be called only once during node construction loading available providers via SPI.
-