public class AnnotatedGenericBeanDefinition extends GenericBeanDefinition implements AnnotatedBeanDefinition
GenericBeanDefinition クラスの拡張。AnnotatedBeanDefinition インターフェースを通じて公開されるアノテーションメタデータのサポートを追加します。 この GenericBeanDefinition バリアントは主に、Spring のコンポーネントスキャンサポート(デフォルトの定義クラスが ScannedGenericBeanDefinition であり、AnnotatedBeanDefinition インターフェースも実装している)での戦略の実装など、AnnotatedBeanDefinition で動作することが予想されるコードのテストに役立ちます。
AnnotatedBeanDefinition.getMetadata(), StandardAnnotationMetadata, 連載形式 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_DEFAULTROLE_APPLICATION, ROLE_INFRASTRUCTURE, ROLE_SUPPORT, SCOPE_PROTOTYPE, SCOPE_SINGLETON| コンストラクターと説明 |
|---|
AnnotatedGenericBeanDefinition(AnnotationMetadata metadata) 指定されたアノテーションメタデータの新しい AnnotatedGenericBeanDefinition を作成し、ASM ベースの処理を可能にし、Bean クラスの早期ロードを回避します。 |
AnnotatedGenericBeanDefinition(AnnotationMetadata metadata, MethodMetadata factoryMethodMetadata) アノテーション付きクラスとそのクラスのファクトリメソッドに基づいて、指定されたアノテーションメタデータ用の新しい AnnotatedGenericBeanDefinition を作成します。 |
AnnotatedGenericBeanDefinition(ClassSE<?> beanClass) 指定された Bean クラスの新しい AnnotatedGenericBeanDefinition を作成します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
MethodMetadata | getFactoryMethodMetadata() この Bean 定義のファクトリメソッドのメタデータがある場合は、取得します。 |
AnnotationMetadata | getMetadata() この Bean 定義の Bean クラスのアノテーションメタデータ(および基本クラスのメタデータ)を取得します。 |
cloneBeanDefinition, equals, getParentName, setParentName, toStringaddQualifier, 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, hasAttributefinalizeSE, getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSEgetBeanClassName, 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, setScopeattributeNames, computeAttribute, getAttribute, hasAttribute, removeAttribute, setAttributegetSourcepublic AnnotatedGenericBeanDefinition(ClassSE<?> beanClass)
beanClass - ロードされた Bean クラス public AnnotatedGenericBeanDefinition(AnnotationMetadata metadata)
ScannedGenericBeanDefinition と関数に同等であることに注意してください。ただし、後者のセマンティクスは、Bean が他の手段とは対照的にコンポーネントスキャンによって具体的に発見されたことを示しています。metadata - 問題の Bean クラスのアノテーションメタデータ public AnnotatedGenericBeanDefinition(AnnotationMetadata metadata, MethodMetadata factoryMethodMetadata)
metadata - 問題の Bean クラスのアノテーションメタデータ factoryMethodMetadata - 選択したファクトリメソッドのメタデータ public final AnnotationMetadata getMetadata()
AnnotatedBeanDefinitionAnnotatedBeanDefinition の getMetadata null)@Nullable public final MethodMetadata getFactoryMethodMetadata()
AnnotatedBeanDefinitionAnnotatedBeanDefinition の getFactoryMethodMetadata null