Class BundleResourceLoader

java.lang.Object
org.adempiere.report.jasper.BundleResourceLoader

public class BundleResourceLoader extends Object
Get report resources from fragment bundle
Author:
hengsin
  • Constructor Details

    • BundleResourceLoader

      public BundleResourceLoader(String destinationFolder)
      Parameters:
      destinationFolder -
  • Method Details

    • getResource

      public Object getResource(String path)
      Parameters:
      path -
      Returns:
      File or URL
    • 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:*"