接口 BeanResolver
- 所有已知实现类:
BeanFactoryResolver
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.- 从以下版本开始:
- 3.0.3
- 作者:
- Andy Clement
方法详细资料
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 contextbeanName
- the name of the bean to look up- 返回:
- an object representing the bean
- 抛出:
AccessException
- if there is an unexpected problem resolving the bean