Top Description Constructors Methods
org.springframework.beans.factory.parsing

public abstract Class AbstractComponentDefinition

extends Object
implements ComponentDefinition
Class Inheritance
All Implemented Interfaces
org.springframework.beans.factory.parsing.ComponentDefinition, org.springframework.beans.BeanMetadataElement
Known Direct Subclasses
org.springframework.beans.factory.parsing.CompositeComponentDefinition
Imports
org.springframework.beans.factory.config.BeanDefinition, .BeanReference

Base implementation of ComponentDefinition that provides a basic implementation of getDescription which delegates to getName. Also provides a base implementation of toString which delegates to getDescription in keeping with the recommended implementation strategy. Also provides default implementations of getInnerBeanDefinitions and getBeanReferences that return an empty array.
Authors
Rob Harrop, Juergen Hoeller
Since
2.0

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public BeanDefinition[]
public BeanReference[]
public String
public BeanDefinition[]
public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Constructor Detail

AbstractComponentDefinitionback to summary
public AbstractComponentDefinition()

Method Detail

getBeanDefinitionsback to summary
public BeanDefinition[] getBeanDefinitions()

Implements org.springframework.beans.factory.parsing.ComponentDefinition.getBeanDefinitions.

Returns an empty array.

Returns:BeanDefinition[]

Doc from org.springframework.beans.factory.parsing.ComponentDefinition.getBeanDefinitions.

the array of BeanDefinitions, or an empty array if none

Annotations
@Override
getBeanReferencesback to summary
public BeanReference[] getBeanReferences()

Implements org.springframework.beans.factory.parsing.ComponentDefinition.getBeanReferences.

Returns an empty array.

Returns:BeanReference[]

Doc from org.springframework.beans.factory.parsing.ComponentDefinition.getBeanReferences.

the array of BeanReferences, or an empty array if none

Annotations
@Override
getDescriptionback to summary
public String getDescription()

Implements org.springframework.beans.factory.parsing.ComponentDefinition.getDescription.

Delegates to getName.

Annotations
@Override
getInnerBeanDefinitionsback to summary
public BeanDefinition[] getInnerBeanDefinitions()

Implements org.springframework.beans.factory.parsing.ComponentDefinition.getInnerBeanDefinitions.

Returns an empty array.

Returns:BeanDefinition[]

Doc from org.springframework.beans.factory.parsing.ComponentDefinition.getInnerBeanDefinitions.

the array of BeanDefinitions, or an empty array if none

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Delegates to getDescription.

Returns:String

Doc from java.lang.Object.toString.

a string representation of the object.

Annotations
@Override