com.interface21.beans.factory.support
Class ChildBeanDefinition

java.lang.Object
  |
  +--com.interface21.beans.factory.support.AbstractBeanDefinition
        |
        +--com.interface21.beans.factory.support.ChildBeanDefinition

public class ChildBeanDefinition
extends AbstractBeanDefinition

Extension of BeanDefinition interface for beans whose class is defined by their ancestry. PropertyValues defined by the parent will also be "inherited", although it's possible to override them by redefining them in the property values associated with the child.

Version:
$Revision: 1.2 $
Author:
Rod Johnson

Constructor Summary
ChildBeanDefinition(java.lang.String parentName, PropertyValues pvs, boolean singleton)
          Creates new BeanDefinition
 
Method Summary
 boolean equals(java.lang.Object arg0)
           
 java.lang.String getParentName()
          Return the name of the parent bean definition in the current bean factory.
 
Methods inherited from class com.interface21.beans.factory.support.AbstractBeanDefinition
getPropertyValues, isSingleton, setPropertyValues
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChildBeanDefinition

public ChildBeanDefinition(java.lang.String parentName,
                           PropertyValues pvs,
                           boolean singleton)
Creates new BeanDefinition
Method Detail

getParentName

public java.lang.String getParentName()
Return the name of the parent bean definition in the current bean factory.
Returns:
the name of the parent bean definition in the current bean factory

equals

public boolean equals(java.lang.Object arg0)
Overrides:
equals in class AbstractBeanDefinition
See Also:
Object.equals(Object)


Rod Johnson and Spring contributors 2001-2003.