org.infinispan.query.backend
Class QueryHelper
java.lang.Object
org.infinispan.query.backend.QueryHelper
public class QueryHelper
- extends Object
This is a TEMPORARY helper class that will be used to add the QueryInterceptor to the chain and provide Classes to
Hibernate Search.
This class needs to be instantiated before adding any objects into the Cache. Any objects added before this
instantiation will not be indexed.
This class must be instantiated only once however.
This class WILL be removed once other hooks come into Infinispan for versions 4.1 etc.
- Since:
- 4.0
- Author:
- Navin Surtani
Constructor Summary |
QueryHelper(Cache cache,
Properties properties,
Class... classes)
Constructor that will take in 3 params and build the searchFactory for Hibernate Search. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryHelper
public QueryHelper(Cache cache,
Properties properties,
Class... classes)
- Constructor that will take in 3 params and build the searchFactory for Hibernate Search.
Once this constructor is called, the user MUST call applyProperties() to set up the interceptors.
- Parameters:
cache
- - the cache instance.properties
- - Properties
classes
- - the Class[] for Hibernate Search.
getSearchFactory
public org.hibernate.search.engine.SearchFactoryImplementor getSearchFactory()
getClasses
public Class[] getClasses()
getProperties
public Properties getProperties()
Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.