Class ProcessorConfigurationUtils.PostProcessorWrapper
- All Implemented Interfaces:
IAttributeDefinitionsAware,IElementDefinitionsAware,IPostProcessor
- Enclosing class:
ProcessorConfigurationUtils
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPostProcessorWrapper(IPostProcessor postProcessor, IProcessorDialect dialect) -
Method Summary
Modifier and TypeMethodDescriptionfinal IProcessorDialectClass<? extends ITemplateHandler> Returns the handler class for this post-processor, theITemplateHandlerthat implements the real logic to be executed.intReturns the precedence that should be applied to this post-processor.Returns the template mode this post-processor should be executed for.final voidsetAttributeDefinitions(AttributeDefinitions attributeDefinitions) final voidsetElementDefinitions(ElementDefinitions elementDefinitions) toString()final IPostProcessorunwrap()
-
Field Details
-
dialect
-
postProcessor
-
-
Constructor Details
-
PostProcessorWrapper
PostProcessorWrapper(IPostProcessor postProcessor, IProcessorDialect dialect)
-
-
Method Details
-
getTemplateMode
Description copied from interface:IPostProcessorReturns the template mode this post-processor should be executed for. A post-processor can only be linked to a specific template mode.
- Specified by:
getTemplateModein interfaceIPostProcessor- Returns:
- the template mode.
-
getPrecedence
public int getPrecedence()Description copied from interface:IPostProcessorReturns the precedence that should be applied to this post-processor. This will determine the order in which it will be executed in relation to any other post-processors (note that the dialect precedence determined by
IPostProcessorDialect.getDialectPostProcessorPrecedence()will be applied first).- Specified by:
getPrecedencein interfaceIPostProcessor- Returns:
- the post-processor precedence.
-
getDialect
-
getHandlerClass
Description copied from interface:IPostProcessorReturns the handler class for this post-processor, the
ITemplateHandlerthat implements the real logic to be executed.In order for post-processors to work correctly, they need to implement correctly all the
ITemplateHandlercontract. In order to make this easier, extendingAbstractTemplateHandleris recommended.- Specified by:
getHandlerClassin interfaceIPostProcessor- Returns:
- the handler class.
-
unwrap
-
setAttributeDefinitions
- Specified by:
setAttributeDefinitionsin interfaceIAttributeDefinitionsAware
-
setElementDefinitions
- Specified by:
setElementDefinitionsin interfaceIElementDefinitionsAware
-
toString
-