|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.beans.factory.support.AbstractBeanDefinition org.springframework.beans.factory.support.RootBeanDefinition
Root bean definitions have a class plus optionally constructor argument values and property values. This is the most common type of bean definition.
Note that root bean definitions do not have to specify a bean class: This can be useful for deriving childs from, each with its own bean class but inheriting common property values and other settings.
AutowireCapableBeanFactory
Field Summary |
Fields inherited from class org.springframework.beans.factory.support.AbstractBeanDefinition |
AUTOWIRE_AUTODETECT, AUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_CONSTRUCTOR, AUTOWIRE_NO, DEPENDENCY_CHECK_ALL, DEPENDENCY_CHECK_NONE, DEPENDENCY_CHECK_OBJECTS, DEPENDENCY_CHECK_SIMPLE |
Constructor Summary | |
RootBeanDefinition(java.lang.Class beanClass,
ConstructorArgumentValues cargs,
MutablePropertyValues pvs)
Create a new RootBeanDefinition for a singleton, providing constructor arguments and property values. |
|
RootBeanDefinition(java.lang.Class beanClass,
int autowireMode)
Create a new RootBeanDefinition for a singleton, using the given autowire mode. |
|
RootBeanDefinition(java.lang.Class beanClass,
int autowireMode,
boolean dependencyCheck)
Create a new RootBeanDefinition for a singleton, using the given autowire mode. |
|
RootBeanDefinition(java.lang.Class beanClass,
MutablePropertyValues pvs)
Create a new RootBeanDefinition for a singleton, providing property values. |
|
RootBeanDefinition(java.lang.Class beanClass,
MutablePropertyValues pvs,
boolean singleton)
Create a new RootBeanDefinition with the given singleton status, providing property values. |
|
RootBeanDefinition(RootBeanDefinition other)
Deep copy constructor. |
|
RootBeanDefinition(java.lang.String beanClassName,
ConstructorArgumentValues cargs,
MutablePropertyValues pvs)
Create a new RootBeanDefinition for a singleton, providing constructor arguments and property values. |
Method Summary | |
java.lang.String |
toString()
|
void |
validate()
Validate this bean definition. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RootBeanDefinition(java.lang.Class beanClass, int autowireMode)
beanClass
- the class of the bean to instantiateautowireMode
- by name or type, using the constants in this interfacepublic RootBeanDefinition(java.lang.Class beanClass, int autowireMode, boolean dependencyCheck)
beanClass
- the class of the bean to instantiateautowireMode
- by name or type, using the constants in this interfacedependencyCheck
- whether to perform a dependency check for objects
(not applicable to autowiring a constructor, thus ignored there)public RootBeanDefinition(java.lang.Class beanClass, MutablePropertyValues pvs)
beanClass
- the class of the bean to instantiatepvs
- the property values to applypublic RootBeanDefinition(java.lang.Class beanClass, MutablePropertyValues pvs, boolean singleton)
beanClass
- the class of the bean to instantiatepvs
- the property values to applysingleton
- the singleton status of the beanpublic RootBeanDefinition(java.lang.Class beanClass, ConstructorArgumentValues cargs, MutablePropertyValues pvs)
beanClass
- the class of the bean to instantiatecargs
- the constructor argument values to applypvs
- the property values to applypublic RootBeanDefinition(java.lang.String beanClassName, ConstructorArgumentValues cargs, MutablePropertyValues pvs)
beanClassName
- the name of the class to instantiatecargs
- the constructor argument values to applypvs
- the property values to applypublic RootBeanDefinition(RootBeanDefinition other)
Method Detail |
public void validate() throws BeanDefinitionValidationException
AbstractBeanDefinition
validate
in class AbstractBeanDefinition
BeanDefinitionValidationException
- in case of validation failurepublic java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |