类 AbstractComponentDefinition
- java.lang.Object
- org.springframework.beans.factory.parsing.AbstractComponentDefinition
- 所有已实现的接口:
BeanMetadataElement
,ComponentDefinition
public abstract class AbstractComponentDefinition extends Object implements ComponentDefinition
Base implementation ofComponentDefinition
that provides a basic implementation ofgetDescription()
which delegates toComponentDefinition.getName()
. Also provides a base implementation oftoString()
which delegates togetDescription()
in keeping with the recommended implementation strategy. Also provides default implementations ofgetInnerBeanDefinitions()
andgetBeanReferences()
that return an empty array.- 从以下版本开始:
- 2.0
- 作者:
- Rob Harrop, Juergen Hoeller
构造器概要
构造器 构造器 说明 AbstractComponentDefinition()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 BeanDefinition[]
getBeanDefinitions()
Returns an empty array.BeanReference[]
getBeanReferences()
Returns an empty array.String
getDescription()
Delegates toComponentDefinition.getName()
.BeanDefinition[]
getInnerBeanDefinitions()
Returns an empty array.String
toString()
Delegates togetDescription()
.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 org.springframework.beans.BeanMetadataElement
getSource
从接口继承的方法 org.springframework.beans.factory.parsing.ComponentDefinition
getName
构造器详细资料
AbstractComponentDefinition
public AbstractComponentDefinition()
方法详细资料
getDescription
public String getDescription()
Delegates toComponentDefinition.getName()
.- 指定者:
getDescription
在接口中ComponentDefinition
getBeanDefinitions
public BeanDefinition[] getBeanDefinitions()
Returns an empty array.- 指定者:
getBeanDefinitions
在接口中ComponentDefinition
- 返回:
- the array of BeanDefinitions, or an empty array if none
getInnerBeanDefinitions
public BeanDefinition[] getInnerBeanDefinitions()
Returns an empty array.- 指定者:
getInnerBeanDefinitions
在接口中ComponentDefinition
- 返回:
- the array of BeanDefinitions, or an empty array if none
getBeanReferences
public BeanReference[] getBeanReferences()
Returns an empty array.- 指定者:
getBeanReferences
在接口中ComponentDefinition
- 返回:
- the array of BeanReferences, or an empty array if none
toString
public String toString()
Delegates togetDescription()
.