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 String
getRelatedResourcesPath()
Object
getResource(String path)
URL
getResourceBundle(String bundleName, Language currLang)
Get property resource file from resourcesFile[]
getSubreports(String path)
static boolean
isClassResourcePath(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:*"
-
-