Package com.webobjects.appserver

Examples of com.webobjects.appserver.WOApplication.resourceManager()


      String s = null;

      if (t == null) {
        try {
          WOApplication app = WOApplication.application();
          WOResourceManager rm = app.resourceManager();

          TransformerFactory fac = TransformerFactory.newInstance();

          log.debug("creating template for file " + filename + " in framework " + framework);
          InputStream is = rm.inputStreamForResourceNamed(filename, framework, null);
View Full Code Here


        if(bundle != null && bundle.isJar()) {
            log.warn("Can't get path when run as jar: " + frameworkName + " - " + fileName);
        } else {
          WOApplication application = WOApplication.application();
          if (application != null) {
              URL url = application.resourceManager().pathURLForResourceNamed(fileName, frameworkName, languages);
              if(url != null) {
                  path = url.getFile();
              }
          } else if( bundle != null ) {
            URL url = bundle.pathURLForResourcePath(fileName);
View Full Code Here

     */
    public static URL pathURLForResourceNamed(String fileName, String frameworkName, NSArray<String> languages) {
      URL url = null;
      WOApplication application = WOApplication.application();
      if (application != null) {
        WOResourceManager resourceManager = application.resourceManager();
        if (resourceManager != null) {
          url = resourceManager.pathURLForResourceNamed(fileName, frameworkName, languages);
        }
      }
        return url;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.