Package org.adempiere.report.jasper
Class ClassResourceLoader
- java.lang.Object
-
- org.adempiere.report.jasper.ClassResourceLoader
-
public class ClassResourceLoader extends Object
Get report resources from class path- Author:
- hengsin
-
-
Constructor Summary
Constructors Constructor Description ClassResourceLoader(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 booleanisClassResourcePath(String path)
-
-
-
Constructor Detail
-
ClassResourceLoader
public ClassResourceLoader(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
-
isClassResourcePath
public static boolean isClassResourcePath(String path)
- Parameters:
path-- Returns:
- true if path is "resource:*"
-
-