|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SearchConfiguration
Provides configuration to Hibernate Search
Method Summary | |
---|---|
Class<?> |
getClassMapping(String name)
Returns a Class from a String parameter. |
Iterator<Class<?>> |
getClassMappings()
Returns an iterator over the list of indexed classes |
InstanceInitializer |
getInstanceInitializer()
|
SearchMapping |
getProgrammaticMapping()
|
Properties |
getProperties()
Gets properties as a java.util.Properties object. |
String |
getProperty(String propertyName)
Gets a configuration property from its name or null if not present |
Map<Class<? extends ServiceProvider<?>>,Object> |
getProvidedServices()
Provide service instances. |
org.hibernate.annotations.common.reflection.ReflectionManager |
getReflectionManager()
Returns a reflection manager if already available in the environment null otherwise |
boolean |
isIndexMetadataComplete()
|
boolean |
isTransactionManagerExpected()
By default Hibernate Search expects to execute in the context of a transaction, and will log warning when certain operations are executed out of such a scope. |
Method Detail |
---|
Iterator<Class<?>> getClassMappings()
Class<?> getClassMapping(String name)
Class
from a String parameter.
name
-
String getProperty(String propertyName)
propertyName
- - as a String.
Properties getProperties()
object
org.hibernate.annotations.common.reflection.ReflectionManager getReflectionManager()
SearchMapping getProgrammaticMapping()
null
Map<Class<? extends ServiceProvider<?>>,Object> getProvidedServices()
BuildContext.requestService(Class)
API
Note that the lifecycle methods:
- org.hibernate.search.spi.ServiceProvider#start(java.util.Properties)
- ServiceProvider.stop()
of the provider are *not* called.
For services using the same ServiceProvider class, provided services have priority
over managed services (ie the ones using the service locator pattern).
boolean isTransactionManagerExpected()
false
Search will avoid logging such warnings.boolean isIndexMetadataComplete()
true
if it is safe to assume that the information we have about
index metadata is accurate. This should be set to false for example if the index
could contain Documents related to types not known to this SearchFactory instance.InstanceInitializer getInstanceInitializer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |