|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.search.impl.ReflectionReplacingSearchConfiguration
public final class ReflectionReplacingSearchConfiguration
Wraps another SearchConfiguration to override it's ReflectionManager
| Constructor Summary | |
|---|---|
ReflectionReplacingSearchConfiguration(org.hibernate.annotations.common.reflection.ReflectionManager reflectionManager,
SearchConfiguration cfg)
Create a new SearchConfiguration which returns the same values as the provided SearchConfiguration instance, with the exception of getReflectionManager() which will return the constructor
defined ReflectionManager. |
|
| 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 |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReflectionReplacingSearchConfiguration(org.hibernate.annotations.common.reflection.ReflectionManager reflectionManager,
SearchConfiguration cfg)
getReflectionManager() which will return the constructor
defined ReflectionManager.
reflectionManager - cfg - | Method Detail |
|---|
public Iterator<Class<?>> getClassMappings()
SearchConfiguration
getClassMappings in interface SearchConfigurationpublic Class<?> getClassMapping(String name)
SearchConfigurationClass from a String parameter.
getClassMapping in interface SearchConfigurationpublic String getProperty(String propertyName)
SearchConfiguration
getProperty in interface SearchConfigurationpropertyName - - as a String.
public Properties getProperties()
SearchConfiguration
getProperties in interface SearchConfigurationobjectpublic org.hibernate.annotations.common.reflection.ReflectionManager getReflectionManager()
SearchConfiguration
getReflectionManager in interface SearchConfigurationpublic SearchMapping getProgrammaticMapping()
getProgrammaticMapping in interface SearchConfigurationnullpublic Map<Class<? extends ServiceProvider<?>>,Object> getProvidedServices()
SearchConfigurationBuildContext.requestService(Class) API
Note that the lifecycle methods:
- 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).
getProvidedServices in interface SearchConfigurationpublic boolean isTransactionManagerExpected()
SearchConfiguration
isTransactionManagerExpected in interface SearchConfigurationfalse Search will avoid logging such warnings.public InstanceInitializer getInstanceInitializer()
getInstanceInitializer in interface SearchConfiguration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||