Interface BeanConfigurationContext


public interface BeanConfigurationContext
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> void
    define(Class<T> exposedType, String name, BeanReference<? extends T> reference)
    Define a way to resolve a bean referenced by its exposedType and name.
    <T> void
    define(Class<T> exposedType, BeanReference<? extends T> reference)
    Define a way to resolve a bean referenced by its exposedType.
  • Method Details

    • define

      <T> void define(Class<T> exposedType, BeanReference<? extends T> reference)
      Define a way to resolve a bean referenced by its exposedType.

      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 not BeanReference.of( exposedType ) (which would create a cycle).
    • define

      <T> void define(Class<T> exposedType, String name, BeanReference<? extends T> reference)
      Define a way to resolve a bean referenced by its exposedType and name.

      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 not BeanReference.of( exposedType, name ) (which would create a cycle).