Spring Data Solr

org.springframework.data.solr
Class VersionUtil

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

public final class VersionUtil
extends Object

Version util uses ClassUtils.isPresent(String) to determine presence of certain classes that are unique to some libraries, which allows to en-/disable some of the features in eg. DefaultQueryParser.

Author:
Christoph Strobl

Method Summary
static boolean isJodaTimeAvailable()
           
static boolean isSolr3XAvailable()
           
static boolean isSolr420Available()
           
static boolean isSolr4XAvailable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isJodaTimeAvailable

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

isSolr3XAvailable

public static boolean isSolr3XAvailable()
Returns:
true if org.apache.solr.client.solrj.impl.CommonsHttpSolrServer (removed in solr 4.0.0) is in path

isSolr4XAvailable

public static boolean isSolr4XAvailable()
Returns:
true if CloudSolrServer (introduced in solr 4.0.0) is in path

isSolr420Available

public static boolean isSolr420Available()
Returns:
true if org.apache.solr.parser.ParseException is in path

Spring Data Solr

Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.