public interface BeanResolver
@myBeanName
and &myBeanName
expressions.
The & variant syntax allows access to the factory bean where relevant.Modifier and Type | Method and Description |
---|---|
java.lang.Object |
resolve(EvaluationContext context,
java.lang.String beanName)
Look up a bean by the given name and return a corresponding instance for it.
|
java.lang.Object resolve(EvaluationContext context, java.lang.String beanName) throws AccessException
context
- the current evaluation contextbeanName
- the name of the bean to look upAccessException
- if there is an unexpected problem resolving the bean