|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.beans.factory.support.BeanDefinitionValueResolver
class BeanDefinitionValueResolver
Helper class for use by BeanFactory implementations, resolving values contained in BeanDefinition objects into the actual values applied to the target bean instance.
Works on an AbstractBeanFactory and a plain BeanDefinition object. Used by AbstractAutowireCapableBeanFactory.
AbstractAutowireCapableBeanFactory
Field Summary | |
---|---|
static String |
GENERATED_BEAN_NAME_SEPARATOR
Separator for generated bean names. |
protected Log |
logger
|
Constructor Summary | |
---|---|
BeanDefinitionValueResolver(AbstractBeanFactory beanFactory,
String beanName,
BeanDefinition beanDefinition)
Create a new BeanDefinitionValueResolver for the given BeanFactory and BeanDefinition. |
Method Summary | |
---|---|
protected Class |
resolveTargetType(TypedStringValue value)
Resolve the target type in the given TypedStringValue. |
Object |
resolveValueIfNecessary(String argName,
Object value)
Given a PropertyValue, return a value, resolving any references to other beans in the factory if necessary. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String GENERATED_BEAN_NAME_SEPARATOR
protected final Log logger
Constructor Detail |
---|
public BeanDefinitionValueResolver(AbstractBeanFactory beanFactory, String beanName, BeanDefinition beanDefinition)
beanFactory
- the BeanFactory to resolve againstbeanName
- the name of the bean that we work onbeanDefinition
- the BeanDefinition of the bean that we work onMethod Detail |
---|
public Object resolveValueIfNecessary(String argName, Object value) throws BeansException
null
, in which case it's left alone.
BeansException
protected Class resolveTargetType(TypedStringValue value) throws ClassNotFoundException
value
- the TypedStringValue to resolve
null
if none specified)
ClassNotFoundException
- if the specified type cannot be resolvedTypedStringValue.resolveTargetType(java.lang.ClassLoader)
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |