Examples of lookupFile()


Examples of org.infinispan.util.FileLookup.lookupFile()

      this.asyncExecutorFactory = asyncExecutorFactory;
   }

   public void setHotRodClientPropertiesFile(String hotRodClientPropertiesFile) {
      FileLookup fileLookup = FileLookupFactory.newInstance();
      InputStream inputStream = fileLookup.lookupFile(hotRodClientPropertiesFile, getClassLoader());
      try {
         hotRodClientProperties.load(inputStream);
      } catch (IOException e) {
         log.error("Issues while loading properties from file " + hotRodClientPropertiesFile, e);
         throw new CacheException(e);
View Full Code Here

Examples of org.infinispan.util.FileLookup.lookupFile()

   * @throws IOException
   * @return
   */
  public ConfigurationBuilderHolder parseFile(String filename) throws IOException {
    FileLookup fileLookup = FileLookupFactory.newInstance();
    InputStream is = fileLookup.lookupFile( filename, searchConfigClassloader );
    if ( is == null ) {
      throw new FileNotFoundException( filename );
    }
    try {
      ConfigurationBuilderHolder builderHolder = configurationParser.parse( is );
View Full Code Here

Examples of org.infinispan.util.FileLookup.lookupFile()

      //1. resolve given path
      FileLookup fileLookup = new FileLookup();
      InputStream is = null;
      if (localPathToSchema != null) {
         is = fileLookup.lookupFile(localPathToSchema);
         if (is != null) {
            log.debugf("Using schema %s", localPathToSchema);
            return is;
         }
         if (log.isDebugEnabled()) {
View Full Code Here

Examples of org.infinispan.util.FileLookup.lookupFile()

                       localPathToSchema, SCHEMA_SYSTEM_PROPERTY, schemaPath());
         }
      }

      //2. resolve local schema path in infinispan distro
      is = fileLookup.lookupFile(schemaPath());
      if (is != null) {
         log.debugf("Using schema %s", schemaPath());
         return is;
      }
      if (log.isDebugEnabled()) {
View Full Code Here

Examples of org.infinispan.util.FileLookup.lookupFile()

   private static InputStream findInputStream(String fileName) throws FileNotFoundException {
      if (fileName == null)
         throw new NullPointerException("File name cannot be null!");
      FileLookup fileLookup = new FileLookup();
      InputStream is = fileLookup.lookupFile(fileName);
      if (is == null)
         throw new FileNotFoundException("File " + fileName
                 + " could not be found, either on the classpath or on the file system!");
      return is;
   }
View Full Code Here

Examples of org.infinispan.util.FileLookup.lookupFile()

      //1. resolve given path
      FileLookup fileLookup = new FileLookup();
      InputStream is = null;
      if (localPathToSchema != null) {
         is = fileLookup.lookupFile(localPathToSchema);
         if (is != null) {
            log.debug("Using schema " + localPathToSchema);
            return is;
         }
         log.debug("Could not find schema on path " + localPathToSchema + ", resolving "
View Full Code Here

Examples of org.infinispan.util.FileLookup.lookupFile()

         log.debug("Could not find schema on path " + localPathToSchema + ", resolving "
                 + SCHEMA_SYSTEM_PROPERTY + " to " + schemaPath());
      }

      //2. resolve local schema path in infinispan distro
      is = fileLookup.lookupFile(schemaPath());
      if (is != null) {
         log.debug("Using schema " + schemaPath());
         return is;
      }
      log.debug("Could not find schema on path " + schemaPath() + ", resolving "
View Full Code Here

Examples of org.infinispan.util.FileLookup.lookupFile()

   private static InputStream findInputStream(String fileName) throws FileNotFoundException {
      if (fileName == null)
         throw new NullPointerException("File name cannot be null!");
      FileLookup fileLookup = new FileLookup();
      InputStream is = fileLookup.lookupFile(fileName);
      if (is == null)
         throw new FileNotFoundException("File " + fileName
                 + " could not be found, either on the classpath or on the file system!");
      return is;
   }
View Full Code Here

Examples of org.infinispan.util.FileLookup.lookupFile()

      boolean validating = !skipSchemaValidation();
      if (!validating)
         return null;

      FileLookup fileLookup = new FileLookup();
      InputStream is = fileLookup.lookupFile(schemaPath());
      if (is != null)
         return is;
      try {
         is = new URL(schemaURL()).openStream();
         return is;
View Full Code Here

Examples of org.infinispan.util.FileLookup.lookupFile()

   private static InputStream findInputStream(String fileName) throws FileNotFoundException {
      if (fileName == null)
         throw new NullPointerException("File name cannot be null!");
      FileLookup fileLookup = new FileLookup();
      InputStream is = fileLookup.lookupFile(fileName);
      if (is == null)
         throw new FileNotFoundException("File " + fileName
               + " could not be found, either on the classpath or on the file system!");
      return is;
   }
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.