public class BeanFactoryResolver extends java.lang.Object implements BeanResolver
BeanFactory
.Constructor and Description |
---|
BeanFactoryResolver(BeanFactory beanFactory)
Create a new
BeanFactoryResolver for the given factory. |
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.
|
public BeanFactoryResolver(BeanFactory beanFactory)
BeanFactoryResolver
for the given factory.beanFactory
- the BeanFactory
to resolve bean names againstpublic java.lang.Object resolve(EvaluationContext context, java.lang.String beanName) throws AccessException
BeanResolver
resolve
in interface BeanResolver
context
- the current evaluation contextbeanName
- the name of the bean to look upAccessException
- if there is an unexpected problem resolving the bean