Skip to content

Commit

Permalink
Fixed legacy compatibility of FopConfigClassLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
fugerit79 committed Nov 21, 2022
1 parent 8faf6cd commit 879bcfb
Showing 1 changed file with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 879bcfb

Please sign in to comment.