org.springframework.batch.core.configuration.xml
Class BeanDefinitionUtils

java.lang.Object
  extended by org.springframework.batch.core.configuration.xml.BeanDefinitionUtils

public class BeanDefinitionUtils
extends Object

Since:
2.0.1
Author:
Dan Garrette

Constructor Summary
BeanDefinitionUtils()
           
 
Method Summary
static Object getAttribute(String beanName, String attributeName, ConfigurableListableBeanFactory beanFactory)
           
static PropertyValue getPropertyValue(String beanName, String propertyName, ConfigurableListableBeanFactory beanFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanDefinitionUtils

public BeanDefinitionUtils()
Method Detail

getPropertyValue

public static PropertyValue getPropertyValue(String beanName,
                                             String propertyName,
                                             ConfigurableListableBeanFactory beanFactory)
Parameters:
beanName - a bean definition name
propertyName - the name of the property
beanFactory - a BeanFactory
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,
                                  ConfigurableListableBeanFactory beanFactory)
Parameters:
beanName - a bean definition name
attributeName - the name of the property
beanFactory - a BeanFactory
Returns:
The value for the attribute of the bean. Search parent hierarchy if necessary. Return null if none is found.


Copyright © 2013 SpringSource. All Rights Reserved.