| org.springframework.beans.factory.support.AbstractBeanDefinition org.springframework.beans.factory.support.ChildBeanDefinition
ChildBeanDefinition | public class ChildBeanDefinition extends AbstractBeanDefinition (Code) | | Bean definition for beans which inherit settings from their parent.
Will use the bean class of the parent if none specified, but can
also override it. In the latter case, the child bean class must be
compatible with the parent, i.e. accept the parent's property values
and constructor argument values, if any.
A child bean definition will inherit constructor argument values,
property values and method overrides from the parent, with the option
to add new values. If init method, destroy method and/or static factory
method are specified, they will override the corresponding parent settings.
The remaining settings will always be taken from the child definition:
depends on, autowire mode, dependency check, singleton, lazy init.
author: Rod Johnson author: Juergen Hoeller See Also: RootBeanDefinition |
Constructor Summary | |
public | ChildBeanDefinition(String parentName) Create a new ChildBeanDefinition for the given parent, to be
configured through its bean properties and configuration methods. | public | ChildBeanDefinition(String parentName, MutablePropertyValues pvs) Create a new ChildBeanDefinition for the given parent. | public | ChildBeanDefinition(String parentName, ConstructorArgumentValues cargs, MutablePropertyValues pvs) Create a new ChildBeanDefinition for the given parent. | public | ChildBeanDefinition(String parentName, Class beanClass, ConstructorArgumentValues cargs, MutablePropertyValues pvs) Create a new ChildBeanDefinition for the given parent,
providing constructor arguments and property values. | public | ChildBeanDefinition(String parentName, String beanClassName, ConstructorArgumentValues cargs, MutablePropertyValues pvs) Create a new ChildBeanDefinition for the given parent,
providing constructor arguments and property values. | public | ChildBeanDefinition(ChildBeanDefinition original) Create a new ChildBeanDefinition as deep copy of the given
bean definition. |
ChildBeanDefinition | public ChildBeanDefinition(String parentName, MutablePropertyValues pvs)(Code) | | Create a new ChildBeanDefinition for the given parent.
Parameters: parentName - the name of the parent bean Parameters: pvs - the additional property values of the child |
ChildBeanDefinition | public ChildBeanDefinition(String parentName, ConstructorArgumentValues cargs, MutablePropertyValues pvs)(Code) | | Create a new ChildBeanDefinition for the given parent.
Parameters: parentName - the name of the parent bean Parameters: cargs - the constructor argument values to apply Parameters: pvs - the additional property values of the child |
ChildBeanDefinition | public ChildBeanDefinition(String parentName, Class beanClass, ConstructorArgumentValues cargs, MutablePropertyValues pvs)(Code) | | Create a new ChildBeanDefinition for the given parent,
providing constructor arguments and property values.
Parameters: parentName - the name of the parent bean Parameters: beanClass - the class of the bean to instantiate Parameters: cargs - the constructor argument values to apply Parameters: pvs - the property values to apply |
ChildBeanDefinition | public ChildBeanDefinition(String parentName, String beanClassName, ConstructorArgumentValues cargs, MutablePropertyValues pvs)(Code) | | Create a new ChildBeanDefinition for the given parent,
providing constructor arguments and property values.
Takes a bean class name to avoid eager loading of the bean class.
Parameters: parentName - the name of the parent bean Parameters: beanClassName - the name of the class to instantiate Parameters: cargs - the constructor argument values to apply Parameters: pvs - the property values to apply |
ChildBeanDefinition | public ChildBeanDefinition(ChildBeanDefinition original)(Code) | | Create a new ChildBeanDefinition as deep copy of the given
bean definition.
Parameters: original - the original bean definition to copy from |
getParentName | public String getParentName()(Code) | | Return the name of the parent definition of this bean definition.
|
hashCode | public int hashCode()(Code) | | |
|
|