接口 BeanResolver


public interface BeanResolver
A bean resolver can be registered with the evaluation context and will kick in for bean references: @myBeanName and &myBeanName expressions. The & variant syntax allows access to the factory bean where relevant.
从以下版本开始:
4.0
作者:
Andy Clement, Harry Yang
  • 方法概要

    修饰符和类型
    方法
    说明
    resolve(EvaluationContext context, String beanName)
    Look up a bean by the given name and return a corresponding instance for it.
  • 方法详细资料

    • resolve

      Object resolve(EvaluationContext context, String beanName) throws AccessException
      Look up a bean by the given name and return a corresponding instance for it. For attempting access to a factory bean, the name needs a & prefix.
      参数:
      context - the current evaluation context
      beanName - the name of the bean to look up
      返回:
      an object representing the bean
      抛出:
      AccessException - if there is an unexpected problem resolving the bean