File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
fj-doc-freemarker/src/main/java/org/fugerit/java/doc/freemarker/helper Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,25 @@ public class FreeMarkerDocProcess implements Serializable {
9
9
10
10
private FreeMarkerDocProcess () {}
11
11
12
+ /**
13
+ * Default configuration path
14
+ */
15
+ public static final String CONFIG_PATH = "cl://fj_doc_freemarker_config/fm-freemarker-doc-process-config.xml" ;
16
+
12
17
/**
13
18
*
14
19
*/
15
20
private static final long serialVersionUID = 1277168639030295400L ;
16
21
17
- public static final String CONFIG_PATH = "cl://fj_doc_freemarker_config/fm-freemarker-doc-process-config.xml" ;
18
-
19
- private static final FreemarkerDocProcessConfig INSTANCE = FreemarkerDocProcessConfigFacade .loadConfigSafe ( CONFIG_PATH );
22
+ /*
23
+ * Default implemnentation
24
+ */
25
+ private static final FreemarkerDocProcessConfig INSTANCE = newInstance ( CONFIG_PATH );
20
26
27
+ public static FreemarkerDocProcessConfig newInstance ( String configPath ) {
28
+ return FreemarkerDocProcessConfigFacade .loadConfigSafe ( configPath );
29
+ }
30
+
21
31
public static FreemarkerDocProcessConfig getInstance () {
22
32
return INSTANCE ;
23
33
}
You can’t perform that action at this time.
0 commit comments