类 BeanFactoryResolver
- java.lang.Object
- org.springframework.context.expression.BeanFactoryResolver
- 所有已实现的接口:
BeanResolver
public class BeanFactoryResolver extends Object implements BeanResolver
EL bean resolver that operates against a SpringBeanFactory
.- 从以下版本开始:
- 3.0.4
- 作者:
- Juergen Hoeller
构造器概要
构造器 构造器 说明 BeanFactoryResolver(BeanFactory beanFactory)
Create a newBeanFactoryResolver
for the given factory.
构造器详细资料
BeanFactoryResolver
public BeanFactoryResolver(BeanFactory beanFactory)
Create a newBeanFactoryResolver
for the given factory.- 参数:
beanFactory
- theBeanFactory
to resolve bean names against
方法详细资料
resolve
public Object resolve(EvaluationContext context, String beanName) throws AccessException
从接口复制的说明:BeanResolver
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.- 指定者:
resolve
在接口中BeanResolver
- 参数:
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