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.BeanConfigurerin theMETA-INF/servicesdirectory of your JAR, and set the content of this file to the fully-qualified name of yourBeanConfigurerimplementation. - Configuration properties: set the
EngineSpiSettings.BEAN_CONFIGURERSconfiguration property (be sure to use the appropriate prefix for the property key, e.g.hibernate.search.).
-
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(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.
-