|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.search.cfg.SearchConfigurationFromHibernateCore
public class SearchConfigurationFromHibernateCore
Search configuration implementation wrapping an Hibernate Core configuration
Constructor Summary | |
---|---|
SearchConfigurationFromHibernateCore(Configuration cfg)
|
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 |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SearchConfigurationFromHibernateCore(Configuration cfg)
Method Detail |
---|
public Iterator<Class<?>> getClassMappings()
SearchConfiguration
getClassMappings
in interface SearchConfiguration
public Class<?> getClassMapping(String name)
SearchConfiguration
Class
from a String parameter.
getClassMapping
in interface SearchConfiguration
public String getProperty(String propertyName)
SearchConfiguration
getProperty
in interface SearchConfiguration
propertyName
- - as a String.
public Properties getProperties()
SearchConfiguration
getProperties
in interface SearchConfiguration
object
public org.hibernate.annotations.common.reflection.ReflectionManager getReflectionManager()
SearchConfiguration
getReflectionManager
in interface SearchConfiguration
public SearchMapping getProgrammaticMapping()
getProgrammaticMapping
in interface SearchConfiguration
null
public Map<Class<? extends ServiceProvider<?>>,Object> getProvidedServices()
SearchConfiguration
BuildContext.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 SearchConfiguration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |