Skip to content

Commit 3e9e18e

Browse files
committed
Added method FreemarkerDocProcessConfig.fullProcess()
with minimal parameters, generating the document and returning xml data.
1 parent 98ae680 commit 3e9e18e

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- method FreemarkerDocProcessConfig.fullProcess() with minimal parameters, generating the document and returning xml data.
13+
1014
### Changed
1115

1216
- fj-core set to 8.3.5

fj-doc-freemarker/src/main/java/org/fugerit/java/doc/freemarker/process/FreemarkerDocProcessConfig.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ protected DefaultChainProvider getDefaultChain() {
5353
return this.defaultChain;
5454
}
5555

56+
public DocProcessData fullProcess( String chainId, DocProcessContext context, DocTypeHandler handler, DocOutput docOutput ) throws Exception {
57+
DocProcessData data = new DocProcessData();
58+
this.process(chainId, context, data);
59+
handler.handle( DocInput.newInput( handler.getType() , data.getCurrentXmlReader() ) , docOutput );
60+
return data;
61+
}
62+
5663
public void process( String chainId, DocProcessContext context, DocProcessData data ) throws Exception {
5764
MiniFilterChain chain = this.getChainCache( chainId );
5865
log.info( "chain list {}", this.docProcessConfig.getIdSet() );

0 commit comments

Comments
 (0)