Interface BeanConfigurationContext
public interface BeanConfigurationContext
-
Method Summary
Modifier and TypeMethodDescription<T> void
define
(Class<T> exposedType, String name, BeanReference<? extends T> reference) Define a way to resolve a bean referenced by itsexposedType
andname
.<T> void
define
(Class<T> exposedType, BeanReference<? extends T> reference) Define a way to resolve a bean referenced by itsexposedType
.
-
Method Details
-
define
Define a way to resolve a bean referenced by itsexposedType
.Affects the behavior of
BeanResolver.resolve(Class, org.hibernate.search.engine.environment.bean.BeanRetrieval)
in particular.- Type Parameters:
T
- The exposed type of the bean.- Parameters:
exposedType
- The type that this definition will match (exact match: inheritance is ignored).reference
- The reference to the bean. This reference should generally call the bean's constructor directly without relying on the bean resolver. However, the reference can also rely on the bean resolver to resolve a reference, provided that reference is notBeanReference.of( exposedType )
(which would create a cycle).
-
define
Define a way to resolve a bean referenced by itsexposedType
andname
.Affects the behavior of
BeanResolver.resolve(Class, String, org.hibernate.search.engine.environment.bean.BeanRetrieval)
in particular.- Type Parameters:
T
- The exposed type of the bean.- Parameters:
exposedType
- The type that this definition will match (exact match: inheritance is ignored).name
- The name that this definition will match (exact match: case is taken into account).reference
- The reference to the bean. This reference should generally call the bean's constructor directly without relying on the bean resolver. However, the reference can also rely on the bean resolver to resolve a reference, provided that reference is notBeanReference.of( exposedType, name )
(which would create a cycle).
-