private static class ConfigurationClassBeanDefinitionReader.ConfigurationClassBeanDefinition extends RootBeanDefinition implements AnnotatedBeanDefinition
RootBeanDefinition
marker subclass used to signify that a bean definition
was created from a configuration class as opposed to any other configuration source.
Used in bean overriding cases where it's necessary to determine whether the bean
definition was created externally.Modifier and Type | Field and Description |
---|---|
private AnnotationMetadata |
annotationMetadata |
private MethodMetadata |
factoryMethodMetadata |
AUTOWIRE_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_DEFAULT
ROLE_APPLICATION, ROLE_INFRASTRUCTURE, ROLE_SUPPORT, SCOPE_PROTOTYPE, SCOPE_SINGLETON
Modifier | Constructor and Description |
---|---|
private |
ConfigurationClassBeanDefinition(ConfigurationClassBeanDefinitionReader.ConfigurationClassBeanDefinition original) |
|
ConfigurationClassBeanDefinition(ConfigurationClass configClass,
MethodMetadata beanMethodMetadata) |
|
ConfigurationClassBeanDefinition(RootBeanDefinition original,
ConfigurationClass configClass,
MethodMetadata beanMethodMetadata) |
Modifier and Type | Method and Description |
---|---|
ConfigurationClassBeanDefinitionReader.ConfigurationClassBeanDefinition |
cloneBeanDefinition()
Clone this bean definition.
|
MethodMetadata |
getFactoryMethodMetadata()
Obtain metadata for this bean definition's factory method, if any.
|
AnnotationMetadata |
getMetadata()
Obtain the annotation metadata (as well as basic class metadata)
for this bean definition's bean class.
|
boolean |
isFactoryMethod(java.lang.reflect.Method candidate)
Check whether the given candidate qualifies as a factory method.
|
equals, getDecoratedDefinition, getParentName, getQualifiedElement, getResolvedFactoryMethod, getTargetType, isExternallyManagedConfigMember, isExternallyManagedDestroyMethod, isExternallyManagedInitMethod, registerExternallyManagedConfigMember, registerExternallyManagedDestroyMethod, registerExternallyManagedInitMethod, setDecoratedDefinition, setParentName, setQualifiedElement, setTargetType, setTargetType, setUniqueFactoryMethodName, toString
addQualifier, applyDefaults, clone, copyQualifiersFrom, getAutowireMode, getBeanClass, getBeanClassName, getConstructorArgumentValues, getDependencyCheck, getDependsOn, getDescription, getDestroyMethodName, getFactoryBeanName, getFactoryMethodName, getInitMethodName, getInstanceSupplier, getMethodOverrides, getOriginatingBeanDefinition, getPropertyValues, getQualifier, getQualifiers, 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, validate
addMetadataAttribute, getAttribute, getMetadataAttribute, getSource, removeAttribute, setAttribute, setSource
attributeNames, copyAttributesFrom, hasAttribute
finalize, getClass, notify, notifyAll, wait, wait, wait
getBeanClassName, getConstructorArgumentValues, getDependsOn, getDescription, getFactoryBeanName, getFactoryMethodName, getOriginatingBeanDefinition, getParentName, getPropertyValues, getResourceDescription, getRole, getScope, hasConstructorArgumentValues, hasPropertyValues, isAbstract, isAutowireCandidate, isLazyInit, isPrimary, isPrototype, isSingleton, setAutowireCandidate, setBeanClassName, setDependsOn, setFactoryBeanName, setFactoryMethodName, setLazyInit, setParentName, setPrimary, setScope
attributeNames, getAttribute, hasAttribute, removeAttribute, setAttribute
getSource
private final AnnotationMetadata annotationMetadata
private final MethodMetadata factoryMethodMetadata
public ConfigurationClassBeanDefinition(ConfigurationClass configClass, MethodMetadata beanMethodMetadata)
public ConfigurationClassBeanDefinition(RootBeanDefinition original, ConfigurationClass configClass, MethodMetadata beanMethodMetadata)
private ConfigurationClassBeanDefinition(ConfigurationClassBeanDefinitionReader.ConfigurationClassBeanDefinition original)
public AnnotationMetadata getMetadata()
AnnotatedBeanDefinition
getMetadata
in interface AnnotatedBeanDefinition
null
)public MethodMetadata getFactoryMethodMetadata()
AnnotatedBeanDefinition
getFactoryMethodMetadata
in interface AnnotatedBeanDefinition
null
if nonepublic boolean isFactoryMethod(java.lang.reflect.Method candidate)
RootBeanDefinition
isFactoryMethod
in class RootBeanDefinition
public ConfigurationClassBeanDefinitionReader.ConfigurationClassBeanDefinition cloneBeanDefinition()
AbstractBeanDefinition
cloneBeanDefinition
in class RootBeanDefinition