Examples of lookupFile()


Examples of org.jboss.cache.util.FileLookup.lookupFile()

   private static final String CONFIG = "config";

   public static Map<String, Element> getStackConfigs(String stacksXmlResource) throws Exception
   {
      FileLookup fileLookup = new FileLookup();
      InputStream is = fileLookup.lookupFile(stacksXmlResource);
      if (is == null)
      {
         throw new ConfigurationException("Unable to find config file " + stacksXmlResource + " either in classpath or on the filesystem!");
      }
     
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.