Package org.springframework.expression
Interface BeanResolver
- All Known Implementing Classes:
- BeanFactoryResolver
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
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.
- Since:
- 3.0.3
- Author:
- Andy Clement
- 
Method SummaryModifier and TypeMethodDescriptionresolve(EvaluationContext context, String beanName) Look up a bean by the given name and return a corresponding instance for it.
- 
Method Details- 
resolveLook 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.- Parameters:
- context- the current evaluation context
- beanName- 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
 
 
-