public final class VersionUtil extends Object
org.springframework.util.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
.Modifier and Type | Method and Description |
---|---|
static boolean |
isJodaTimeAvailable() |
static boolean |
isSolr3XAvailable() |
static boolean |
isSolr420Available() |
static boolean |
isSolr4XAvailable() |
public static boolean isJodaTimeAvailable()
org.joda.time.DateTime
is in pathpublic static boolean isSolr3XAvailable()
org.apache.solr.client.solrj.impl.CommonsHttpSolrServer
(removed in solr 4.0.0) is in pathpublic static boolean isSolr4XAvailable()
CloudSolrServer
(introduced in solr 4.0.0) is in pathpublic static boolean isSolr420Available()
org.apache.solr.parser.ParseException
is in pathCopyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.