public abstract class

AbstractComponentDefinition

extends Object
implements ComponentDefinition
java.lang.Object
   ↳ org.springframework.beans.factory.parsing.AbstractComponentDefinition
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

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.

Summary

Public Constructors
AbstractComponentDefinition()
Public Methods
BeanDefinition[] getBeanDefinitions()
Returns an empty array.
BeanReference[] getBeanReferences()
Returns an empty array.
String getDescription()
Delegates to getName().
BeanDefinition[] getInnerBeanDefinitions()
Returns an empty array.
String toString()
Delegates to getDescription().
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.beans.BeanMetadataElement
From interface org.springframework.beans.factory.parsing.ComponentDefinition

Public Constructors

public AbstractComponentDefinition ()

Also: SpringBeans

Public Methods

public BeanDefinition[] getBeanDefinitions ()

Also: SpringBeans

Returns an empty array.

Returns
  • the array of BeanDefinitions, or an empty array if none

public BeanReference[] getBeanReferences ()

Also: SpringBeans

Returns an empty array.

Returns
  • the array of BeanReferences, or an empty array if none

public String getDescription ()

Also: SpringBeans

Delegates to getName().

public BeanDefinition[] getInnerBeanDefinitions ()

Also: SpringBeans

Returns an empty array.

Returns
  • the array of BeanDefinitions, or an empty array if none

public String toString ()

Delegates to getDescription().