Package com.ideo.jso.util

Examples of com.ideo.jso.util.Resource


          // Order of class loader should be respected JSO-14
            final Collection resourcesByOrigin = getConfigResources();
            final LinkedList resourcesList = new LinkedList();
            Iterator iOrigin = resourcesByOrigin.iterator();
            while (iOrigin.hasNext()) {
              Resource resource =(Resource) iOrigin.next()
              // Check JSO is allowed to read jso xml config file fromt this jar.
              String origin = resource.getSource();
               if (origin.startsWith(LOCAL_CLASSPATH) || JarRestrictionManager.getInstance().isJarAllowed(origin)) {
                  LOG.debug("Adding "+CONFIGURATION_FILE_NAME+" from " + origin + ".");
                   resourcesList.addFirst(resource.getUrl());
              } else {
                  LOG.debug("Jar " + origin + " refused. See jso.allowedJar property in jso.properties file.");
              }
            }
           
View Full Code Here


            // local class path or project link in dev mode ?
         
          jarName = LOCAL_CLASSPATH + url.getPath();
        }

           resources.addLast(new Resource(jarName,url));
      }
     
      return resources;
    }
View Full Code Here

TOP

Related Classes of com.ideo.jso.util.Resource

Copyright © 2018 www.massapicom. 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.