Interface BeanConfigurer


  • public interface BeanConfigurer
    An object responsible for defining beans that can then be resolved during Hibernate Search bootstrap.

    Bean configurers can be enabled through two different methods:

    • Java services: create a file named org.hibernate.search.engine.environment.bean.spi.BeanConfigurer in the META-INF/services directory of your JAR, and set the content of this file to the fully-qualified name of your BeanConfigurer implementation.
    • Configuration properties: set the EngineSpiSettings.BEAN_CONFIGURERS configuration property (be sure to use the appropriate prefix for the property key, e.g. hibernate.search.).
    • Method Detail

      • configure

        void configure​(BeanConfigurationContext context)
        Configure beans as necessary using the given context.
        Parameters:
        context - A context exposing methods to configure beans.