Skip to content

Commit

Permalink
HSEARCH-581 No longer use Core's Helper classes
Browse files Browse the repository at this point in the history
Make use of Hibernate Commons Annotations instead
We need to limit our dependencies to Core esp to non public contracts

git-svn-id: https://svn.jboss.org/repos/hibernate/search/trunk@20243 1b8cb986-b30d-0410-93ca-fae66ebed9b2
  • Loading branch information
emmanuelbernard committed Aug 24, 2010
1 parent 7715b74 commit 3fe4b8a
Show file tree
Hide file tree
Showing 31 changed files with 35 additions and 33 deletions.
Expand Up @@ -27,12 +27,12 @@
import java.util.Map;
import java.util.Properties;

import org.hibernate.annotations.common.util.StringHelper;
import org.hibernate.search.Environment;
import org.hibernate.search.spi.WorkerBuildContext;
import org.hibernate.search.backend.impl.TransactionalWorker;
import org.hibernate.search.cfg.SearchConfiguration;
import org.hibernate.search.util.PluginLoader;
import org.hibernate.util.StringHelper;

/**
* @author Emmanuel Bernard
Expand Down
Expand Up @@ -26,7 +26,7 @@

import java.util.Properties;

import org.hibernate.util.StringHelper;
import org.hibernate.annotations.common.util.StringHelper;
import org.hibernate.search.SearchException;

/**
Expand Down
Expand Up @@ -36,6 +36,7 @@
import org.slf4j.Logger;

import org.hibernate.annotations.common.AssertionFailure;
import org.hibernate.annotations.common.util.StringHelper;
import org.hibernate.search.Environment;
import org.hibernate.search.SearchException;
import org.hibernate.search.spi.WorkerBuildContext;
Expand All @@ -60,7 +61,6 @@
import org.hibernate.search.util.HibernateHelper;
import org.hibernate.search.util.LoggerFactory;
import org.hibernate.search.util.PluginLoader;
import org.hibernate.util.StringHelper;

/**
* Batch work until {@link #performWorks} is called.
Expand Down
Expand Up @@ -26,7 +26,7 @@

import java.math.BigDecimal;

import org.hibernate.util.StringHelper;
import org.hibernate.annotations.common.util.StringHelper;

/**
* Map a BigDecimal element
Expand Down
Expand Up @@ -26,7 +26,7 @@

import java.math.BigInteger;

import org.hibernate.util.StringHelper;
import org.hibernate.annotations.common.util.StringHelper;

/**
* Map a <code>BigInteger</code> element.
Expand Down
Expand Up @@ -24,8 +24,8 @@
*/
package org.hibernate.search.bridge.builtin;

import org.hibernate.annotations.common.util.StringHelper;
import org.hibernate.search.bridge.TwoWayStringBridge;
import org.hibernate.util.StringHelper;

/**
* Map a boolean field
Expand Down
Expand Up @@ -24,11 +24,11 @@
*/
package org.hibernate.search.bridge.builtin;

import org.hibernate.annotations.common.util.StringHelper;
import org.hibernate.search.SearchException;
import org.hibernate.search.annotations.Resolution;
import org.hibernate.search.bridge.ParameterizedBridge;
import org.hibernate.search.bridge.TwoWayStringBridge;
import org.hibernate.util.StringHelper;
import org.apache.lucene.document.DateTools;

import java.util.Date;
Expand Down
Expand Up @@ -24,7 +24,7 @@
*/
package org.hibernate.search.bridge.builtin;

import org.hibernate.util.StringHelper;
import org.hibernate.annotations.common.util.StringHelper;

/**
* Map a character element
Expand Down
Expand Up @@ -24,10 +24,10 @@
*/
package org.hibernate.search.bridge.builtin;

import org.hibernate.annotations.common.util.ReflectHelper;
import org.hibernate.annotations.common.util.StringHelper;
import org.hibernate.search.bridge.TwoWayStringBridge;
import org.hibernate.search.SearchException;
import org.hibernate.util.StringHelper;
import org.hibernate.util.ReflectHelper;

/**
* Convert a Class back and forth
Expand Down
Expand Up @@ -30,11 +30,12 @@
import java.util.Map;

import org.apache.lucene.document.DateTools;

import org.hibernate.annotations.common.util.StringHelper;
import org.hibernate.search.SearchException;
import org.hibernate.search.bridge.ParameterizedBridge;
import org.hibernate.search.annotations.Resolution;
import org.hibernate.search.bridge.TwoWayStringBridge;
import org.hibernate.util.StringHelper;

/**
* Bridge a java.util.Date to a String, truncated to the resolution
Expand Down
Expand Up @@ -24,7 +24,7 @@
*/
package org.hibernate.search.bridge.builtin;

import org.hibernate.util.StringHelper;
import org.hibernate.annotations.common.util.StringHelper;

/**
* Map a double element
Expand Down
Expand Up @@ -24,8 +24,8 @@
*/
package org.hibernate.search.bridge.builtin;

import org.hibernate.annotations.common.util.StringHelper;
import org.hibernate.search.bridge.TwoWayStringBridge;
import org.hibernate.util.StringHelper;


/**
Expand Down
Expand Up @@ -24,7 +24,7 @@
*/
package org.hibernate.search.bridge.builtin;

import org.hibernate.util.StringHelper;
import org.hibernate.annotations.common.util.StringHelper;

/**
* Map a float element
Expand Down
Expand Up @@ -24,7 +24,7 @@
*/
package org.hibernate.search.bridge.builtin;

import org.hibernate.util.StringHelper;
import org.hibernate.annotations.common.util.StringHelper;

/**
* Map an integer element
Expand Down
Expand Up @@ -24,7 +24,7 @@
*/
package org.hibernate.search.bridge.builtin;

import org.hibernate.util.StringHelper;
import org.hibernate.annotations.common.util.StringHelper;

/**
* Map a long element
Expand Down
Expand Up @@ -24,7 +24,7 @@
*/
package org.hibernate.search.bridge.builtin;

import org.hibernate.util.StringHelper;
import org.hibernate.annotations.common.util.StringHelper;

/**
* Map a short element
Expand Down
Expand Up @@ -27,7 +27,7 @@
import java.net.URI;
import java.net.URISyntaxException;

import org.hibernate.util.StringHelper;
import org.hibernate.annotations.common.util.StringHelper;
import org.hibernate.search.SearchException;
import org.hibernate.search.bridge.TwoWayStringBridge;

Expand Down
Expand Up @@ -27,9 +27,9 @@
import java.net.URL;
import java.net.MalformedURLException;

import org.hibernate.annotations.common.util.StringHelper;
import org.hibernate.search.bridge.TwoWayStringBridge;
import org.hibernate.search.SearchException;
import org.hibernate.util.StringHelper;

/**
* Bridge for <code>URL</code>s.
Expand Down
Expand Up @@ -46,6 +46,7 @@
import org.hibernate.annotations.common.reflection.XClass;
import org.hibernate.annotations.common.reflection.XMember;
import org.hibernate.annotations.common.reflection.XProperty;
import org.hibernate.annotations.common.util.StringHelper;
import org.hibernate.search.SearchException;
import org.hibernate.search.analyzer.Discriminator;
import org.hibernate.search.annotations.AnalyzerDef;
Expand All @@ -71,7 +72,6 @@
import org.hibernate.search.util.PassThroughAnalyzer;
import org.hibernate.search.util.ReflectionHelper;
import org.hibernate.search.util.ScopedAnalyzer;
import org.hibernate.util.StringHelper;

/**
* Set up and provide a manager for classes which are indexed via <code>@IndexedEmbedded</code>, but themselves do not
Expand Down
Expand Up @@ -27,7 +27,8 @@
import java.util.ArrayList;
import java.util.List;

import org.hibernate.util.ReflectHelper;
import org.hibernate.annotations.common.util.ReflectHelper;


/**
* @author Emmanuel Bernard
Expand Down
Expand Up @@ -34,15 +34,15 @@
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.search.Similarity;

import org.hibernate.annotations.common.util.ReflectHelper;
import org.hibernate.annotations.common.util.StringHelper;
import org.hibernate.search.Environment;
import org.hibernate.search.SearchException;
import org.hibernate.search.annotations.AnalyzerDef;
import org.hibernate.search.cfg.SearchConfiguration;
import org.hibernate.search.util.DelegateNamedAnalyzer;
import org.hibernate.search.util.LoggerFactory;
import org.hibernate.search.util.PluginLoader;
import org.hibernate.util.ReflectHelper;
import org.hibernate.util.StringHelper;
import org.slf4j.Logger;

/**
Expand Down
Expand Up @@ -37,6 +37,7 @@
import org.slf4j.Logger;

import org.hibernate.annotations.common.AssertionFailure;
import org.hibernate.annotations.common.util.StringHelper;
import org.hibernate.search.Environment;
import org.hibernate.search.SearchException;
import org.hibernate.search.Version;
Expand Down Expand Up @@ -72,7 +73,6 @@
import org.hibernate.search.store.optimization.OptimizerStrategy;
import org.hibernate.search.util.LoggerFactory;
import org.hibernate.search.util.PluginLoader;
import org.hibernate.util.StringHelper;

/**
* This implementation is never directly exposed to the user, it is always wrapped into a {@link org.hibernate.search.impl.MutableSearchFactory}
Expand Down
Expand Up @@ -45,6 +45,7 @@
import org.hibernate.annotations.common.reflection.ReflectionManager;
import org.hibernate.annotations.common.reflection.XClass;
import org.hibernate.annotations.common.reflection.java.JavaReflectionManager;
import org.hibernate.annotations.common.util.StringHelper;
import org.hibernate.search.Environment;
import org.hibernate.search.SearchException;
import org.hibernate.search.Version;
Expand Down Expand Up @@ -89,7 +90,6 @@
import org.hibernate.search.util.LoggerFactory;
import org.hibernate.search.util.PluginLoader;
import org.hibernate.search.util.ReflectionHelper;
import org.hibernate.util.StringHelper;

/**
* Build a search factory.
Expand Down
Expand Up @@ -30,10 +30,10 @@
import org.hibernate.CacheMode;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.annotations.common.util.ReflectHelper;
import org.hibernate.search.FullTextSession;
import org.hibernate.search.Search;
import org.hibernate.search.util.JNDIHelper;
import org.hibernate.util.ReflectHelper;


/**
Expand Down
Expand Up @@ -58,6 +58,7 @@
import org.hibernate.ScrollMode;
import org.hibernate.ScrollableResults;
import org.hibernate.Session;
import org.hibernate.annotations.common.util.ReflectHelper;
import org.hibernate.engine.SessionImplementor;
import org.hibernate.engine.query.ParameterMetadata;
import org.hibernate.impl.AbstractQueryImpl;
Expand Down Expand Up @@ -86,7 +87,6 @@
import org.hibernate.search.util.ContextHelper;
import org.hibernate.search.util.LoggerFactory;
import org.hibernate.transform.ResultTransformer;
import org.hibernate.util.ReflectHelper;

import static org.hibernate.search.reader.ReaderProviderHelper.getIndexReaders;
import static org.hibernate.search.util.FilterCacheModeTypeHelper.cacheInstance;
Expand Down
Expand Up @@ -27,11 +27,11 @@
import java.util.Map;
import java.util.Properties;

import org.hibernate.annotations.common.util.StringHelper;
import org.hibernate.search.Environment;
import org.hibernate.search.spi.BuildContext;
import org.hibernate.search.cfg.SearchConfiguration;
import org.hibernate.search.util.PluginLoader;
import org.hibernate.util.StringHelper;

/**
* @author Emmanuel Bernard
Expand Down
Expand Up @@ -42,12 +42,12 @@
import org.apache.lucene.search.TermQuery;
import org.apache.lucene.search.TopDocs;

import org.hibernate.annotations.common.util.ReflectHelper;
import org.hibernate.search.ProjectionConstants;
import org.hibernate.search.Version;
import org.hibernate.search.engine.SearchFactoryImplementor;
import org.hibernate.search.reader.ReaderProvider;
import org.hibernate.search.store.DirectoryProvider;
import org.hibernate.util.ReflectHelper;

/**
* A concurrent implementation of the {@code Statistics} interface.
Expand Down
Expand Up @@ -31,6 +31,7 @@
import org.hibernate.annotations.common.reflection.ReflectionManager;
import org.hibernate.annotations.common.reflection.XClass;
import org.hibernate.annotations.common.reflection.java.JavaReflectionManager;
import org.hibernate.annotations.common.util.StringHelper;
import org.hibernate.search.Environment;
import org.hibernate.search.spi.WritableBuildContext;
import org.hibernate.search.SearchException;
Expand All @@ -43,7 +44,6 @@
import org.hibernate.search.store.optimization.NoOpOptimizerStrategy;
import org.hibernate.search.store.optimization.OptimizerStrategy;
import org.hibernate.search.util.PluginLoader;
import org.hibernate.util.StringHelper;

/**
* Create a Lucene directory provider which can be configured
Expand Down
Expand Up @@ -39,7 +39,7 @@
import org.apache.lucene.store.SingleInstanceLockFactory;
import org.slf4j.Logger;

import org.hibernate.util.StringHelper;
import org.hibernate.annotations.common.util.StringHelper;
import org.hibernate.search.SearchException;
import org.hibernate.search.util.FileHelper;
import org.hibernate.search.util.LoggerFactory;
Expand Down
Expand Up @@ -35,7 +35,7 @@
import org.apache.solr.common.ResourceLoader;
import org.apache.solr.util.plugin.ResourceLoaderAware;

import org.hibernate.util.ReflectHelper;
import org.hibernate.annotations.common.util.ReflectHelper;
import org.hibernate.search.SearchException;

/**
Expand Down
Expand Up @@ -24,8 +24,8 @@
*/
package org.hibernate.search.util;

import org.hibernate.annotations.common.util.ReflectHelper;
import org.hibernate.search.SearchException;
import org.hibernate.util.ReflectHelper;

/**
* Utility class to load instances of other classes by using a fully qualified name,
Expand Down

0 comments on commit 3fe4b8a

Please sign in to comment.