org.springframework.data.solr
Class VersionUtil
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.