Class BeanDefinitionUtils


  • public class BeanDefinitionUtils
    extends java.lang.Object
    Since:
    2.0.1
    Author:
    Dan Garrette
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static java.lang.ObjectgetAttribute​(java.lang.String beanName, java.lang.String attributeName, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) 
      static org.springframework.beans.PropertyValuegetPropertyValue​(java.lang.String beanName, java.lang.String propertyName, org.springframework.beans.factory.config.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 org.springframework.beans.PropertyValue getPropertyValue​(java.lang.String beanName,
                                                                               java.lang.String propertyName,
                                                                               org.springframework.beans.factory.config.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 java.lang.Object getAttribute​(java.lang.String beanName,
                                                    java.lang.String attributeName,
                                                    org.springframework.beans.factory.config.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.