Class BeanFactoryResolver
java.lang.Object
org.springframework.context.expression.BeanFactoryResolver
- All Implemented Interfaces:
 BeanResolver
EL bean resolver that operates against a Spring
 
BeanFactory.- Since:
 - 3.0.4
 - Author:
 - Juergen Hoeller
 
- 
Constructor Summary
ConstructorsConstructorDescriptionBeanFactoryResolver(BeanFactory beanFactory) Create a newBeanFactoryResolverfor the given factory. - 
Method Summary
Modifier and TypeMethodDescriptionresolve(EvaluationContext context, String beanName) Look up a bean by the given name and return a corresponding instance for it. 
- 
Constructor Details
- 
BeanFactoryResolver
Create a newBeanFactoryResolverfor the given factory.- Parameters:
 beanFactory- theBeanFactoryto resolve bean names against
 
 - 
 - 
Method Details
- 
resolve
Description copied from interface:BeanResolverLook 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.- Specified by:
 resolvein interfaceBeanResolver- Parameters:
 context- the current evaluation contextbeanName- the name of the bean to look up- Returns:
 - an object representing the bean
 - Throws:
 AccessException- if there is an unexpected problem resolving the bean
 
 -