Skip to content

Commit 879bcfb

Browse files
committed
Fixed legacy compatibility of FopConfigClassLoader
#7
1 parent 8faf6cd commit 879bcfb

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

fj-doc-mod-fop/src/main/java/org/fugerit/java/doc/mod/fop/config/FopConfigClassLoader.java

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,24 @@ public String getFopConfigPath() {
3030
public ResourceResolver getCustomResourceResolver() {
3131
return customResourceResolver;
3232
}
33-
33+
34+
/**
35+
* Provided only for compatibility
36+
*
37+
* @param fopConfigPath
38+
* @param defaultFontPath
39+
*
40+
* @deprecated use instaed the other constructors or the xml configuration, see [0.5.2](https://github.com/fugerit-org/fj-doc/issues/7)
41+
*/
42+
@Deprecated
43+
public FopConfigClassLoader(String fopConfigPath, String defaultFontPath) {
44+
this( fopConfigPath, new ClassLoaderResourceResolver( defaultFontPath ) );
45+
}
46+
47+
public FopConfigClassLoader(String fopConfigPath) {
48+
this( fopConfigPath, new ClassLoaderResourceResolverWrapper() );
49+
}
50+
3451
public FopConfigClassLoader(String fopConfigPath, ResourceResolver customResourceResolver) {
3552
super();
3653
this.fopConfigPath = fopConfigPath;

0 commit comments

Comments
 (0)