Package org.hibernate.search.cfg
Class SearchConfigurationFromHibernateCore
java.lang.Object
org.hibernate.search.cfg.SearchConfigurationFromHibernateCore
- All Implemented Interfaces:
SearchConfiguration
Search configuration implementation wrapping an Hibernate Core configuration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?> getClassMapping(String name) Returns aClassfrom a String parameter.Returns an iterator over the list of indexed classesGets properties as a java.util.Properties object.getProperty(String propertyName) Gets a configuration property from its name or null if not presentMap<Class<? extends ServiceProvider<?>>, Object> Provide service instances.Returns a reflection manager if already available in the environment null otherwise
-
Constructor Details
-
SearchConfigurationFromHibernateCore
-
-
Method Details
-
getClassMappings
Description copied from interface:SearchConfigurationReturns an iterator over the list of indexed classes- Specified by:
getClassMappingsin interfaceSearchConfiguration- Returns:
- iterator of indexed classes.
-
getClassMapping
Description copied from interface:SearchConfigurationReturns aClassfrom a String parameter.- Specified by:
getClassMappingin interfaceSearchConfiguration- Parameters:
name-- Returns:
- corresponding class instance.
-
getProperty
Description copied from interface:SearchConfigurationGets a configuration property from its name or null if not present- Specified by:
getPropertyin interfaceSearchConfiguration- Parameters:
propertyName- - as a String.- Returns:
- the property as a String
-
getProperties
Description copied from interface:SearchConfigurationGets properties as a java.util.Properties object.- Specified by:
getPropertiesin interfaceSearchConfiguration- Returns:
- a java.util.Properties object.
- See Also:
-
getReflectionManager
Description copied from interface:SearchConfigurationReturns a reflection manager if already available in the environment null otherwise- Specified by:
getReflectionManagerin interfaceSearchConfiguration- Returns:
- ReflectionManager
-
getProgrammaticMapping
- Specified by:
getProgrammaticMappingin interfaceSearchConfiguration- Returns:
- the programmatic configuration or
null
-
getProvidedServices
Description copied from interface:SearchConfigurationProvide service instances. Return the provided services (provider and instance at stake) These services are passed untouched by Hibernate Search via theBuildContext.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).- Specified by:
getProvidedServicesin interfaceSearchConfiguration
-