public class BeanFactoryResolver extends Object implements BeanResolver
BeanFactory.| Constructor and Description |
|---|
BeanFactoryResolver(BeanFactory beanFactory)
Create a new
BeanFactoryResolver for the given factory. |
| Modifier and Type | Method and Description |
|---|---|
Object |
resolve(EvaluationContext context,
String beanName)
Look up a bean by the given name and return a corresponding instance for it.
|
public BeanFactoryResolver(BeanFactory beanFactory)
BeanFactoryResolver for the given factory.beanFactory - the BeanFactory to resolve bean names againstpublic Object resolve(EvaluationContext context, String beanName) throws AccessException
BeanResolverresolve in interface BeanResolvercontext - the current evaluation contextbeanName - the name of the bean to look upAccessException - if there is an unexpected problem resolving the bean