类 BeanDefinitionUtils


  • public class BeanDefinitionUtils
    extends java.lang.Object
    从以下版本开始:
    2.0.1
    作者:
    Dan Garrette
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型方法说明
      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) 
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 方法详细资料

      • getPropertyValue

        public static org.springframework.beans.PropertyValue getPropertyValue​(java.lang.String beanName,
                                                                               java.lang.String propertyName,
                                                                               org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
        参数:
        beanName - a bean definition name
        propertyName - the name of the property
        beanFactory - a BeanFactory
        返回:
        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)
        参数:
        beanName - a bean definition name
        attributeName - the name of the property
        beanFactory - a BeanFactory
        返回:
        The value for the attribute of the bean. Search parent hierarchy if necessary. Return null if none is found.