Re: Chain processors - can we ?
Posted by
ch007m on
Apr 09, 2020; 6:50pm
URL: https://discuss.asciidoctor.org/Chain-processors-can-we-tp7870p7876.html
I can share the HashMap using a static method between the classes. But, as we cannot define the order of the execution of the processors, then I must try to use another approach where I will use first a preprocessor to calculate the hashmap and next using a Blockprocessor to generate the table with the hashmap values
asciidoctor.javaExtensionRegistry()
.preprocessor(FindRolesPreProcessor.class)
.block(GenerateTableBlockProcessor.class);
Remark: the problem that I have is that we cannot use a document AST tree with the preprocessor but instead read lines to navigate ...
Charles Moulliard
Apache Committer / Technologist Evangelist / Blogger / MiddleWare Specialist
Twitter : @cmoulliard