Interface SearchConfiguration

All Known Implementing Classes:
IncrementalSearchConfiguration, SearchConfigurationFromHibernateCore

public interface SearchConfiguration
Provides configuration to Hibernate Search
  • Method Details

    • getClassMappings

      Iterator<Class<?>> getClassMappings()
      Returns an iterator over the list of indexed classes
      Returns:
      iterator of indexed classes.
    • getClassMapping

      Class<?> getClassMapping(String name)
      Returns a Class from a String parameter.
      Parameters:
      name -
      Returns:
      corresponding class instance.
    • getProperty

      String getProperty(String propertyName)
      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 the 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).