Class VersionUtil

java.lang.Object
org.springframework.data.solr.VersionUtil

public final class VersionUtil extends Object
Version util uses ClassUtils.isPresent(String, ClassLoader) to determine presence of certain classes that are unique to some libraries, which allows to en-/disable some of the features in eg. DefaultQueryParser.
  • Method Details

    • isJodaTimeAvailable

      public static boolean isJodaTimeAvailable()
      Returns:
      true if org.joda.time.DateTime is in path
    • isIsSolr7

      public static boolean isIsSolr7()
      Returns:
      true if Solr7 is on the classpath.
      Since:
      4.0