com.interface21.beans.factory.support
Class RootBeanDefinition

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

public class RootBeanDefinition
extends AbstractBeanDefinition

Root bean definitions have a class and properties.

Author:
Rod Johnson

Constructor Summary
protected RootBeanDefinition()
           
  RootBeanDefinition(java.lang.Class clazz, PropertyValues pvs, boolean singleton)
          Creates new AbstractRootBeanDefinition
 
Method Summary
 boolean equals(java.lang.Object arg0)
           
 java.lang.Class getBeanClass()
           
 BeanWrapper getBeanWrapperForNewInstance()
          Given a bean wrapper, add listeners
protected  BeanWrapper newBeanWrapper()
          Subclasses may override this, to create bean wrappers differently or perform custom preprocessing.
protected  void setBeanClass(java.lang.Class clazz)
           
 void setBeanClassName(java.lang.String classname)
          Setter for the name of the JavaBean target class.
 java.lang.String toString()
           
 
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, wait, wait, wait
 

Constructor Detail

RootBeanDefinition

public RootBeanDefinition(java.lang.Class clazz,
                          PropertyValues pvs,
                          boolean singleton)
Creates new AbstractRootBeanDefinition

RootBeanDefinition

protected RootBeanDefinition()
Method Detail

setBeanClass

protected void setBeanClass(java.lang.Class clazz)

setBeanClassName

public void setBeanClassName(java.lang.String classname)
                      throws java.lang.ClassNotFoundException
Setter for the name of the JavaBean target class.

getBeanClass

public final java.lang.Class getBeanClass()
Returns:
the class of the wrapped bean

newBeanWrapper

protected BeanWrapper newBeanWrapper()
Subclasses may override this, to create bean wrappers differently or perform custom preprocessing. This implementation wraps the bean class directly.
Returns:
a new BeanWrapper wrapper the target object

getBeanWrapperForNewInstance

public final BeanWrapper getBeanWrapperForNewInstance()
                                               throws BeansException
Given a bean wrapper, add listeners

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

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.