From 879bcfb5a7867dbd20022dfdf4d134ca2d84ac75 Mon Sep 17 00:00:00 2001 From: "Matteo a.k.a Fugerit" Date: Mon, 21 Nov 2022 20:34:55 +0100 Subject: [PATCH] Fixed legacy compatibility of FopConfigClassLoader #7 --- .../mod/fop/config/FopConfigClassLoader.java | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/fj-doc-mod-fop/src/main/java/org/fugerit/java/doc/mod/fop/config/FopConfigClassLoader.java b/fj-doc-mod-fop/src/main/java/org/fugerit/java/doc/mod/fop/config/FopConfigClassLoader.java index 6e8994eb1..67407cc35 100644 --- a/fj-doc-mod-fop/src/main/java/org/fugerit/java/doc/mod/fop/config/FopConfigClassLoader.java +++ b/fj-doc-mod-fop/src/main/java/org/fugerit/java/doc/mod/fop/config/FopConfigClassLoader.java @@ -30,7 +30,24 @@ public String getFopConfigPath() { public ResourceResolver getCustomResourceResolver() { return customResourceResolver; } - + + /** + * Provided only for compatibility + * + * @param fopConfigPath + * @param defaultFontPath + * + * @deprecated use instaed the other constructors or the xml configuration, see [0.5.2](https://github.com/fugerit-org/fj-doc/issues/7) + */ + @Deprecated + public FopConfigClassLoader(String fopConfigPath, String defaultFontPath) { + this( fopConfigPath, new ClassLoaderResourceResolver( defaultFontPath ) ); + } + + public FopConfigClassLoader(String fopConfigPath) { + this( fopConfigPath, new ClassLoaderResourceResolverWrapper() ); + } + public FopConfigClassLoader(String fopConfigPath, ResourceResolver customResourceResolver) { super(); this.fopConfigPath = fopConfigPath;