public class GenericBeanDefinition extends AbstractBeanDefinition
In general, use this GenericBeanDefinition class for the purpose of
registering user-visible bean definitions (which a post-processor might operate on,
potentially even reconfiguring the parent name). Use RootBeanDefinition /
ChildBeanDefinition where parent/child relationships happen to be pre-determined.
setParentName(java.lang.String),
RootBeanDefinition,
ChildBeanDefinition,
Serialized FormAUTOWIRE_AUTODETECT, AUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_CONSTRUCTOR, AUTOWIRE_NO, DEPENDENCY_CHECK_ALL, DEPENDENCY_CHECK_NONE, DEPENDENCY_CHECK_OBJECTS, DEPENDENCY_CHECK_SIMPLE, INFER_METHOD, SCOPE_DEFAULTROLE_APPLICATION, ROLE_INFRASTRUCTURE, ROLE_SUPPORT, SCOPE_PROTOTYPE, SCOPE_SINGLETON| Constructor and Description |
|---|
GenericBeanDefinition()
Create a new GenericBeanDefinition, to be configured through its bean
properties and configuration methods.
|
GenericBeanDefinition(BeanDefinition original)
Create a new GenericBeanDefinition as deep copy of the given
bean definition.
|
| Modifier and Type | Method and Description |
|---|---|
AbstractBeanDefinition |
cloneBeanDefinition()
Clone this bean definition.
|
boolean |
equals(Object other) |
String |
getParentName()
Return the name of the parent definition of this bean definition, if any.
|
void |
setParentName(String parentName)
Set the name of the parent definition of this bean definition, if any.
|
String |
toString() |
addQualifier, applyDefaults, clone, copyQualifiersFrom, getAutowireMode, getBeanClass, getBeanClassName, getConstructorArgumentValues, getDependencyCheck, getDependsOn, getDescription, getDestroyMethodName, getFactoryBeanName, getFactoryMethodName, getInitMethodName, getInstanceSupplier, getLazyInit, getMethodOverrides, getOriginatingBeanDefinition, getPropertyValues, getQualifier, getQualifiers, getResolvableType, getResolvedAutowireMode, getResource, getResourceDescription, getRole, getScope, hasBeanClass, hasConstructorArgumentValues, hashCode, hasMethodOverrides, hasPropertyValues, hasQualifier, isAbstract, isAutowireCandidate, isEnforceDestroyMethod, isEnforceInitMethod, isLazyInit, isLenientConstructorResolution, isNonPublicAccessAllowed, isPrimary, isPrototype, isSingleton, isSynthetic, overrideFrom, prepareMethodOverride, prepareMethodOverrides, resolveBeanClass, setAbstract, setAutowireCandidate, setAutowireMode, setBeanClass, setBeanClassName, setConstructorArgumentValues, setDependencyCheck, setDependsOn, setDescription, setDestroyMethodName, setEnforceDestroyMethod, setEnforceInitMethod, setFactoryBeanName, setFactoryMethodName, setInitMethodName, setInstanceSupplier, setLazyInit, setLenientConstructorResolution, setMethodOverrides, setNonPublicAccessAllowed, setOriginatingBeanDefinition, setPrimary, setPropertyValues, setResource, setResourceDescription, setRole, setScope, setSynthetic, validateaddMetadataAttribute, getAttribute, getMetadataAttribute, getSource, removeAttribute, setAttribute, setSourceattributeNames, computeAttribute, copyAttributesFrom, hasAttributefinalize, getClass, notify, notifyAll, wait, wait, waitattributeNames, computeAttribute, getAttribute, hasAttribute, removeAttribute, setAttributegetSourcepublic GenericBeanDefinition()
AbstractBeanDefinition.setBeanClass(java.lang.Class<?>),
AbstractBeanDefinition.setScope(java.lang.String),
AbstractBeanDefinition.setConstructorArgumentValues(org.springframework.beans.factory.config.ConstructorArgumentValues),
AbstractBeanDefinition.setPropertyValues(org.springframework.beans.MutablePropertyValues)public GenericBeanDefinition(BeanDefinition original)
original - the original bean definition to copy frompublic void setParentName(@Nullable
String parentName)
BeanDefinition@Nullable public String getParentName()
BeanDefinitionpublic AbstractBeanDefinition cloneBeanDefinition()
AbstractBeanDefinitioncloneBeanDefinition in class AbstractBeanDefinitionpublic boolean equals(@Nullable
Object other)
equals in class AbstractBeanDefinitionpublic String toString()
toString in class AbstractBeanDefinition