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 theMETA-INF/services
directory of your JAR, and set the content of this file to the fully-qualified name of yourBeanConfigurer
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 Summary
Modifier and TypeMethodDescriptionvoid
configure
(BeanConfigurationContext context) Configure beans as necessary using the givencontext
.
-
Method Details
-
configure
Configure beans as necessary using the givencontext
.- Parameters:
context
- A context exposing methods to configure beans.
-