Class BeanDefinitionUtils
java.lang.Object
org.springframework.batch.core.configuration.xml.BeanDefinitionUtils
- Since:
- 2.0.1
- Author:
- Dan Garrette
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Object
getAttribute
(String beanName, String attributeName, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) static org.springframework.beans.PropertyValue
getPropertyValue
(String beanName, String propertyName, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
-
Constructor Details
-
BeanDefinitionUtils
public BeanDefinitionUtils()
-
-
Method Details
-
getPropertyValue
public static org.springframework.beans.PropertyValue getPropertyValue(String beanName, String propertyName, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) - Parameters:
beanName
- a bean definition namepropertyName
- the name of the propertybeanFactory
- aBeanFactory
- Returns:
- The
PropertyValue
for the property of the bean. Search parent hierarchy if necessary. Return null if none is found.
-
getAttribute
public static Object getAttribute(String beanName, String attributeName, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) - Parameters:
beanName
- a bean definition nameattributeName
- the name of the propertybeanFactory
- aBeanFactory
- Returns:
- The value for the attribute of the bean. Search parent hierarchy if necessary. Return null if none is found.
-