Skip to content

Commit 0c7049f

Browse files
committed
1.1.2-rc.001 (2023-07-03)
+ Updated quarkus version to 3.1.3.Final + Added generation time on playgroud quarkus + Added lombok dependency + Added API for AOT type handlers initialization (especially useful for libraries like apache fop)
1 parent e950892 commit 0c7049f

File tree

29 files changed

+176
-42
lines changed

29 files changed

+176
-42
lines changed

docgen/parameters.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"title" : "Venus (Fugerit Document Generation Framework)",
33
"name": "Venus",
4-
"version" : "1.1.1-rc.001",
5-
"date" : "02/07/2023",
4+
"version" : "1.1.2-rc.001",
5+
"date" : "03/07/2023",
66
"organization" : {
77
"name" : "Fugerit Org",
88
"url" : "https://www.fugerit.org"

docgen/release-notes.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
1.1.2-rc.001 (2023-07-XX)
1+
1.1.2-rc.001 (2023-07-03)
22
------------------
33
+ Updated quarkus version to 3.1.3.Final
4+
+ Added generation time on playgroud quarkus
5+
+ Added lombok dependency
6+
+ Added API for AOT type handlers initialization (especially useful for libraries like apache fop)
47

58
1.1.1-rc.001 (2023-07-02)
69
------------------

fj-doc-base-json/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.fugerit.java</groupId>
99
<artifactId>fj-doc</artifactId>
10-
<version>1.1.1-rc.001</version>
10+
<version>1.1.2-rc.001</version>
1111
</parent>
1212

1313
<name>fj-doc-base-json</name>

fj-doc-base-yaml/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.fugerit.java</groupId>
99
<artifactId>fj-doc</artifactId>
10-
<version>1.1.1-rc.001</version>
10+
<version>1.1.2-rc.001</version>
1111
</parent>
1212

1313
<name>fj-doc-base-yaml</name>

fj-doc-base/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.fugerit.java</groupId>
99
<artifactId>fj-doc</artifactId>
10-
<version>1.1.1-rc.001</version>
10+
<version>1.1.2-rc.001</version>
1111
</parent>
1212

1313
<name>fj-doc-base</name>
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
package org.fugerit.java.doc.base.config;
2+
3+
import java.io.ByteArrayOutputStream;
4+
import java.io.InputStreamReader;
5+
6+
import org.fugerit.java.core.cfg.ConfigException;
7+
import org.fugerit.java.core.lang.helpers.ClassHelper;
8+
import org.fugerit.java.core.util.checkpoint.CheckpointUtils;
9+
10+
import lombok.extern.slf4j.Slf4j;
11+
12+
/**
13+
* DocTypeHandler Initializer.
14+
* If AOT initialization is needed it is possible to call these Facade.
15+
*
16+
*/
17+
@Slf4j
18+
public class InitHandler {
19+
20+
public static final String PATH_INIT_DOC = "config/init_doc/doc-init.xml";
21+
22+
public static boolean initDoc( DocTypeHandler handler ) throws ConfigException {
23+
boolean init = true;
24+
long startTime = System.currentTimeMillis();
25+
try ( InputStreamReader reader = new InputStreamReader( ClassHelper.loadFromDefaultClassLoader( PATH_INIT_DOC ) );
26+
ByteArrayOutputStream baos = new ByteArrayOutputStream() ) {
27+
handler.handle( DocInput.newInput( handler.getType() , reader ) , DocOutput.newOutput( baos ) );
28+
log.info( "Init handler time {} -> {}", handler, CheckpointUtils.formatTimeDiffMillis( startTime , System.currentTimeMillis() ) );
29+
} catch (Exception e) {
30+
throw new ConfigException( "Init exception : "+e, e );
31+
}
32+
return init;
33+
}
34+
35+
public static void initDocAsync( DocTypeHandler handler ) {
36+
Runnable runInitDoc = new Runnable() {
37+
@Override
38+
public void run() {
39+
log.info( "Init handler start : {}", handler );
40+
try {
41+
boolean initOk = initDoc(handler);
42+
log.info( "Init handler end : {} -> {}", handler, initOk );
43+
} catch (ConfigException e) {
44+
log.info( "Init handler error "+e, e );
45+
}
46+
}
47+
};
48+
Thread t = new Thread( runInitDoc );
49+
t.start();
50+
}
51+
52+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version = "1.0" encoding = "UTF-8" standalone = "no" ?>
2+
<doc
3+
xmlns="http://javacoredoc.fugerit.org"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation="http://javacoredoc.fugerit.org http://www.fugerit.org/data/java/doc/xsd/doc-2-0.xsd" >
6+
7+
<metadata>
8+
<info name="margins">10;10;10;10</info>
9+
<info name="doc-title">Test XML 01 title</info>
10+
<info name="doc-subject">Test XML 01 subject</info>
11+
<info name="doc-author">Fugerit</info>
12+
<info name="doc-creator">fj-doc (Venus) Sample</info>
13+
<info name="doc-language">en</info>
14+
<bookmark-tree>
15+
<bookmark ref="b1">Bookmark 1</bookmark>
16+
<bookmark ref="b2">Bookmark 2</bookmark>
17+
</bookmark-tree>
18+
</metadata>
19+
<body>
20+
<h head-level="1" align="center" id="b1">Header 1</h>
21+
</body>
22+
</doc>

fj-doc-bom-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.fugerit.java</groupId>
99
<artifactId>fj-doc</artifactId>
10-
<version>1.1.1-rc.001</version>
10+
<version>1.1.2-rc.001</version>
1111
</parent>
1212

1313
<name>fj-doc-bom-core</name>

fj-doc-bom-fop/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.fugerit.java</groupId>
99
<artifactId>fj-doc</artifactId>
10-
<version>1.1.1-rc.001</version>
10+
<version>1.1.2-rc.001</version>
1111
</parent>
1212

1313
<name>fj-doc-bom-fop</name>

fj-doc-freemarker/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.fugerit.java</groupId>
99
<artifactId>fj-doc</artifactId>
10-
<version>1.1.1-rc.001</version>
10+
<version>1.1.2-rc.001</version>
1111
</parent>
1212

1313
<name>fj-doc-freemarker</name>

0 commit comments

Comments
 (0)