类 ScannedGenericBeanDefinition
java.lang.Object
cn.taketoday.core.AttributeAccessorSupport
cn.taketoday.beans.BeanMetadataAttributeAccessor
cn.taketoday.beans.factory.support.AbstractBeanDefinition
cn.taketoday.beans.factory.support.GenericBeanDefinition
cn.taketoday.context.annotation.ScannedGenericBeanDefinition
- 所有已实现的接口:
BeanMetadataElement,AnnotatedBeanDefinition,BeanDefinition,cn.taketoday.core.AttributeAccessor,Serializable,Cloneable
public class ScannedGenericBeanDefinition
extends GenericBeanDefinition
implements AnnotatedBeanDefinition
Extension of the
BeanDefinition class, based on an ASM ClassReader,
with support for annotation metadata exposed through the
AnnotatedBeanDefinition interface.
This class does not load the bean Class early.
It rather retrieves all relevant metadata from the ".class" file itself,
parsed with the ASM ClassReader. It is functionally equivalent to
AnnotatedGenericBeanDefinition(AnnotationMetadata)
but distinguishes by type beans that have been scanned vs those that have
been otherwise registered or detected by other means.
- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller, Chris Beams
- 另请参阅:
-
getMetadata()AbstractBeanDefinition.getBeanClassName()MetadataReaderFactoryAnnotatedBeanDefinition- 序列化表格
-
字段概要
从类继承的字段 cn.taketoday.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, INFER_METHOD, SCOPE_DEFAULT从类继承的字段 cn.taketoday.core.AttributeAccessorSupport
attributes从接口继承的字段 cn.taketoday.beans.factory.config.BeanDefinition
EMPTY_METHOD, ROLE_APPLICATION, ROLE_INFRASTRUCTURE, ROLE_SUPPORT, SCOPE_PROTOTYPE, SCOPE_SINGLETON -
构造器概要
构造器构造器说明ScannedGenericBeanDefinition(cn.taketoday.core.type.classreading.MetadataReader metadataReader) Create a new ScannedGenericBeanDefinition for the class that the given MetadataReader describes. -
方法概要
修饰符和类型方法说明cn.taketoday.core.type.MethodMetadatafinal cn.taketoday.core.type.AnnotationMetadata从类继承的方法 cn.taketoday.beans.factory.support.GenericBeanDefinition
cloneBeanDefinition, equals, getParentName, setParentName, toString从类继承的方法 cn.taketoday.beans.factory.support.AbstractBeanDefinition
addQualifier, applyDefaults, clone, copyQualifiersFrom, getAutowireMode, getBeanClass, getBeanClassName, getConstructorArgumentValues, getDependencyCheck, getDependsOn, getDescription, getDestroyMethodName, getDestroyMethodNames, getFactoryBeanName, getFactoryMethodName, getInitMethodName, getInitMethodNames, getInstanceSupplier, getLazyInit, getMethodOverrides, getOriginatingBeanDefinition, getPropertyValues, getQualifier, getQualifiers, getResolvableType, getResolvedAutowireMode, getResource, getResourceDescription, getRole, getScope, hasBeanClass, hasConstructorArgumentValues, hashCode, hasMethodOverrides, hasPropertyValues, hasQualifier, isAbstract, isAutowireCandidate, isEnableDependencyInjection, isEnforceDestroyMethod, isEnforceInitMethod, isLazyInit, isLenientConstructorResolution, isNonPublicAccessAllowed, isPrimary, isPrototype, isSingleton, isSynthetic, overrideFrom, prepareMethodOverride, prepareMethodOverrides, resolveBeanClass, setAbstract, setAutowireCandidate, setAutowireMode, setBeanClass, setBeanClassName, setConstructorArgumentValues, setDependencyCheck, setDependsOn, setDescription, setDestroyMethodName, setDestroyMethodNames, setEnableDependencyInjection, setEnforceDestroyMethod, setEnforceInitMethod, setFactoryBeanName, setFactoryMethodName, setInitMethodName, setInitMethodNames, setInstanceSupplier, setLazyInit, setLenientConstructorResolution, setMethodOverrides, setNonPublicAccessAllowed, setOriginatingBeanDefinition, setPrimary, setPropertyValues, setResource, setResourceDescription, setRole, setScope, setSynthetic, validate从类继承的方法 cn.taketoday.beans.BeanMetadataAttributeAccessor
addMetadataAttribute, getAttribute, getMetadataAttribute, getSource, removeAttribute, setAttribute, setSource从类继承的方法 cn.taketoday.core.AttributeAccessorSupport
attributeNames, clearAttributes, computeAttribute, copyAttributesFrom, createAttributes, getAttributeNames, getAttributes, hasAttribute, hasAttributes从接口继承的方法 cn.taketoday.core.AttributeAccessor
attributeNames, clearAttributes, computeAttribute, copyAttributesFrom, getAttribute, getAttributeNames, getAttributes, hasAttribute, hasAttributes, removeAttribute, setAttribute从接口继承的方法 cn.taketoday.beans.factory.config.BeanDefinition
cloneBeanDefinition, getBeanClassName, getConstructorArgumentValues, getDependsOn, getDescription, getDestroyMethodName, getFactoryBeanName, getFactoryMethodName, getInitMethodName, getOriginatingBeanDefinition, getParentName, getPropertyValues, getResolvableType, getResourceDescription, getRole, getScope, hasConstructorArgumentValues, hasPropertyValues, isAbstract, isAutowireCandidate, isEnableDependencyInjection, isLazyInit, isPrimary, isPrototype, isSingleton, setAutowireCandidate, setBeanClassName, setDependsOn, setDescription, setDestroyMethodName, setEnableDependencyInjection, setFactoryBeanName, setFactoryMethodName, setInitMethodName, setLazyInit, setParentName, setPrimary, setRole, setScope从接口继承的方法 cn.taketoday.beans.BeanMetadataElement
getSource
-
构造器详细资料
-
ScannedGenericBeanDefinition
public ScannedGenericBeanDefinition(cn.taketoday.core.type.classreading.MetadataReader metadataReader) Create a new ScannedGenericBeanDefinition for the class that the given MetadataReader describes.- 参数:
metadataReader- the MetadataReader for the scanned target class
-
-
方法详细资料
-
getMetadata
public final cn.taketoday.core.type.AnnotationMetadata getMetadata()- 指定者:
getMetadata在接口中AnnotatedBeanDefinition
-
getFactoryMethodMetadata
@Nullable public cn.taketoday.core.type.MethodMetadata getFactoryMethodMetadata()
-