Package org.infinispan.lucene.logging

Examples of org.infinispan.lucene.logging.Log


   private LuceneVersionDetector() {
      //Not to be instantiated
   }

   private static int detectVersion() {
      Log log = LogFactory.getLog(LuceneVersionDetector.class, Log.class);
      int version = 3;
      try {
         Class.forName("org.apache.lucene.store.IOContext", true, LuceneVersionDetector.class.getClassLoader());
         version = 4;
      }
      catch (ClassNotFoundException e) {
      }
      log.detectedLuceneVersion(version);
      return version;
   }
View Full Code Here


public class LuceneVersionDetector {

   public static final int VERSION = detectVersion();

   private static int detectVersion() {
      Log log = LogFactory.getLog(LuceneVersionDetector.class, Log.class);
      int version = 3;
      try {
         Class.forName("org.apache.lucene.store.IOContext", true, LuceneVersionDetector.class.getClassLoader());
         version = 4;
      } catch (ClassNotFoundException e) {
      }
      log.detectedLuceneVersion(version);
      return version;
   }
View Full Code Here

public class LuceneVersionDetector {

   public static final int VERSION = detectVersion();

   private static int detectVersion() {
      Log log = LogFactory.getLog(LuceneVersionDetector.class, Log.class);
      int version = 3;
      try {
         Class.forName("org.apache.lucene.store.IOContext", true, LuceneVersionDetector.class.getClassLoader());
         version = 4;
      } catch (ClassNotFoundException e) {
      }
      log.detectedLuceneVersion(version);
      return version;
   }
View Full Code Here

TOP

Related Classes of org.infinispan.lucene.logging.Log

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.