Class CommentProcessorRegistry
- java.lang.Object
-
- org.wickedsource.docxstamper.processor.CommentProcessorRegistry
-
public class CommentProcessorRegistry extends Object
Allows registration of ICommentProcessor objects. Each registered ICommentProcessor must implement an interface which has to be specified at registration time. Provides several getter methods to access the registered ICommentProcessors.
-
-
Constructor Summary
Constructors Constructor Description CommentProcessorRegistry(PlaceholderReplacer placeholderReplacer, DocxStamperConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreset()<T> voidrunProcessors(org.docx4j.openpackaging.packages.WordprocessingMLPackage document, T expressionContext)Lets each registered ICommentProcessor have a run on the specified docx document.voidsetExpressionResolver(ExpressionResolver expressionResolver)
-
-
-
Constructor Detail
-
CommentProcessorRegistry
public CommentProcessorRegistry(PlaceholderReplacer placeholderReplacer, DocxStamperConfiguration configuration)
-
-
Method Detail
-
setExpressionResolver
public void setExpressionResolver(ExpressionResolver expressionResolver)
-
runProcessors
public <T> void runProcessors(org.docx4j.openpackaging.packages.WordprocessingMLPackage document, T expressionContext)Lets each registered ICommentProcessor have a run on the specified docx document. At the end of the document the commit method is called for each ICommentProcessor. The ICommentProcessors are run in the order they were registered.- Parameters:
document- the docx document over which to run the registered ICommentProcessors.expressionContext- the context root object
-
reset
public void reset()
-
-