Package org.adempiere.report.jasper
Class ClassResourceLoader
java.lang.Object
org.adempiere.report.jasper.ClassResourceLoader
Get report resources from class path
- Author:
- hengsin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetResource
(String path) getResourceBundle
(String bundleName, Language currLang) Get property resource file from resourcesFile[]
getSubreports
(String path) static boolean
isClassResourcePath
(String path)
-
Constructor Details
-
ClassResourceLoader
- Parameters:
destinationFolder
-
-
-
Method Details
-
getResource
- Parameters:
path
-- Returns:
- File or URL
-
getResourceBundle
Get property resource file from resources- Parameters:
bundleName
-currLang
-- Returns:
- URL
-
getSubreports
- Parameters:
path
- The full path to the parent report- Returns:
- File[0]
-
getRelatedResourcesPath
- Returns:
- url path to load subreports, images and resource bundle
-
isClassResourcePath
- Parameters:
path
-- Returns:
- true if path is "resource:*"
-