Package org.hibernate.search.cfg
Interface SearchConfiguration
- All Known Implementing Classes:
IncrementalSearchConfiguration,SearchConfigurationFromHibernateCore
public interface SearchConfiguration
Provides configuration to Hibernate Search
-
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
-
Method Details
-
getClassMappings
Returns an iterator over the list of indexed classes- Returns:
- iterator of indexed classes.
-
getClassMapping
Returns aClassfrom a String parameter.- Parameters:
name-- Returns:
- corresponding class instance.
-
getProperty
Gets a configuration property from its name or null if not present- Parameters:
propertyName- - as a String.- Returns:
- the property as a String
-
getProperties
Properties getProperties()Gets properties as a java.util.Properties object.- Returns:
- a java.util.Properties object.
- See Also:
-
getReflectionManager
ReflectionManager getReflectionManager()Returns a reflection manager if already available in the environment null otherwise- Returns:
- ReflectionManager
-
getProgrammaticMapping
SearchMapping getProgrammaticMapping()- Returns:
- the programmatic configuration or
null
-
getProvidedServices
Map<Class<? extends ServiceProvider<?>>,Object> getProvidedServices()Provide 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).
-