接口 AnnotatedBeanDefinition
public interface AnnotatedBeanDefinition extends BeanDefinition
ExtendedBeanDefinition
interface that exposesAnnotationMetadata
about its bean class - without requiring the class to be loaded yet.- 从以下版本开始:
- 2.5
- 作者:
- Juergen Hoeller
- 另请参阅:
AnnotatedGenericBeanDefinition
,AnnotationMetadata
字段概要
从接口继承的字段 org.springframework.beans.factory.config.BeanDefinition
ROLE_APPLICATION, ROLE_INFRASTRUCTURE, ROLE_SUPPORT, SCOPE_PROTOTYPE, SCOPE_SINGLETON
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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.从接口继承的方法 org.springframework.core.AttributeAccessor
attributeNames, getAttribute, hasAttribute, removeAttribute, setAttribute
从接口继承的方法 org.springframework.beans.factory.config.BeanDefinition
getBeanClassName, getConstructorArgumentValues, getDependsOn, getDescription, getDestroyMethodName, getFactoryBeanName, getFactoryMethodName, getInitMethodName, getOriginatingBeanDefinition, getParentName, getPropertyValues, getResolvableType, getResourceDescription, getRole, getScope, hasConstructorArgumentValues, hasPropertyValues, isAbstract, isAutowireCandidate, isLazyInit, isPrimary, isPrototype, isSingleton, setAutowireCandidate, setBeanClassName, setDependsOn, setDescription, setDestroyMethodName, setFactoryBeanName, setFactoryMethodName, setInitMethodName, setLazyInit, setParentName, setPrimary, setRole, setScope
从接口继承的方法 org.springframework.beans.BeanMetadataElement
getSource
方法详细资料
getMetadata
AnnotationMetadata getMetadata()
Obtain the annotation metadata (as well as basic class metadata) for this bean definition's bean class.- 返回:
- the annotation metadata object (never
null
)
getFactoryMethodMetadata
@Nullable MethodMetadata getFactoryMethodMetadata()
Obtain metadata for this bean definition's factory method, if any.- 返回:
- the factory method metadata, or
null
if none - 从以下版本开始:
- 4.1.1