Package org.adempiere.report.jasper
Class BundleResourceLoader
- java.lang.Object
-
- org.adempiere.report.jasper.BundleResourceLoader
-
public class BundleResourceLoader extends Object
Get report resources from fragment bundle- Author:
- hengsin
-
-
Constructor Summary
Constructors Constructor Description BundleResourceLoader(String destinationFolder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetRelatedResourcesPath()ObjectgetResource(String path)URLgetResourceBundle(String bundleName, Language currLang)Get property resource file from resourcesFile[]getSubreports(String path)static booleanisBundleResourcePath(String path)
-
-
-
Constructor Detail
-
BundleResourceLoader
public BundleResourceLoader(String destinationFolder)
- Parameters:
destinationFolder-
-
-
Method Detail
-
getResourceBundle
public URL getResourceBundle(String bundleName, Language currLang)
Get property resource file from resources- Parameters:
bundleName-currLang-- Returns:
- URL
-
getSubreports
public File[] getSubreports(String path)
- Parameters:
path- The full path to the parent report- Returns:
- File[0];
-
getRelatedResourcesPath
public String getRelatedResourcesPath()
- Returns:
- url path to load subreports, images and resource bundle
-
isBundleResourcePath
public static boolean isBundleResourcePath(String path)
- Parameters:
path-- Returns:
- true if path is "bundle:*"
-
-