クラス AnnotatedGenericBeanDefinition
java.lang.ObjectSE
org.springframework.core.AttributeAccessorSupport
org.springframework.beans.BeanMetadataAttributeAccessor
org.springframework.beans.factory.support.AbstractBeanDefinition
org.springframework.beans.factory.support.GenericBeanDefinition
org.springframework.beans.factory.annotation.AnnotatedGenericBeanDefinition
- 実装されているすべてのインターフェース:
SerializableSE、CloneableSE、BeanMetadataElement、AnnotatedBeanDefinition、BeanDefinition、AttributeAccessor
public class AnnotatedGenericBeanDefinition
extends GenericBeanDefinition
implements AnnotatedBeanDefinition
GenericBeanDefinition クラスの拡張。AnnotatedBeanDefinition インターフェースを通じて公開されるアノテーションメタデータのサポートを追加します。 この GenericBeanDefinition バリアントは主に、Spring のコンポーネントスキャンサポート(デフォルトの定義クラスが ScannedGenericBeanDefinition であり、AnnotatedBeanDefinition インターフェースも実装している)での戦略の実装など、AnnotatedBeanDefinition で動作することが予想されるコードのテストに役立ちます。
- 導入:
- 2.5
- 作成者:
- Juergen Hoeller, Chris Beams
- 関連事項:
フィールドのサマリー
クラス org.springframework.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, ORDER_ATTRIBUTE, PREFERRED_CONSTRUCTORS_ATTRIBUTE, SCOPE_DEFAULTインターフェース org.springframework.beans.factory.config.BeanDefinition から継承されたフィールド
ROLE_APPLICATION, ROLE_INFRASTRUCTURE, ROLE_SUPPORT, SCOPE_PROTOTYPE, SCOPE_SINGLETONコンストラクターの概要
コンストラクターコンストラクター説明AnnotatedGenericBeanDefinition(ClassSE<?> beanClass) 指定された Bean クラスの新しい AnnotatedGenericBeanDefinition を作成します。指定されたアノテーションメタデータの新しい AnnotatedGenericBeanDefinition を作成し、ASM ベースの処理を可能にし、Bean クラスの早期ロードを回避します。AnnotatedGenericBeanDefinition(AnnotationMetadata metadata, MethodMetadata factoryMethodMetadata) アノテーション付きクラスとそのクラスのファクトリメソッドに基づいて、指定されたアノテーションメタデータ用の新しい AnnotatedGenericBeanDefinition を作成します。メソッドのサマリー
修飾子と型メソッド説明final MethodMetadataこの Bean 定義のファクトリメソッドのメタデータがある場合は、取得します。final AnnotationMetadataこの Bean 定義の Bean クラスのアノテーションメタデータ(および基本クラスのメタデータ)を取得します。クラス org.springframework.beans.factory.support.GenericBeanDefinition から継承されたメソッド
cloneBeanDefinition, equals, getParentName, setParentName, toStringクラス org.springframework.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, isEnforceDestroyMethod, isEnforceInitMethod, isLazyInit, isLenientConstructorResolution, isNonPublicAccessAllowed, isPrimary, isPrototype, isSingleton, isSynthetic, overrideFrom, prepareMethodOverride, prepareMethodOverrides, resolveBeanClass, setAbstract, setAutowireCandidate, setAutowireMode, setBeanClass, setBeanClassName, setConstructorArgumentValues, setDependencyCheck, setDependsOn, setDescription, setDestroyMethodName, setDestroyMethodNames, setEnforceDestroyMethod, setEnforceInitMethod, setFactoryBeanName, setFactoryMethodName, setInitMethodName, setInitMethodNames, setInstanceSupplier, setLazyInit, setLenientConstructorResolution, setMethodOverrides, setNonPublicAccessAllowed, setOriginatingBeanDefinition, setPrimary, setPropertyValues, setResource, setResourceDescription, setRole, setScope, setSynthetic, validateクラス org.springframework.beans.BeanMetadataAttributeAccessor から継承されたメソッド
addMetadataAttribute, getAttribute, getMetadataAttribute, getSource, removeAttribute, setAttribute, setSourceクラス org.springframework.core.AttributeAccessorSupport から継承されたメソッド
attributeNames, computeAttribute, copyAttributesFrom, hasAttributeインターフェース org.springframework.core.AttributeAccessor から継承されたメソッド
attributeNames, computeAttribute, 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
コンストラクターの詳細
AnnotatedGenericBeanDefinition
指定された Bean クラスの新しい AnnotatedGenericBeanDefinition を作成します。- パラメーター:
beanClass- ロードされた Bean クラス
AnnotatedGenericBeanDefinition
指定されたアノテーションメタデータの新しい AnnotatedGenericBeanDefinition を作成し、ASM ベースの処理を可能にし、Bean クラスの早期ロードを回避します。このコンストラクターはScannedGenericBeanDefinitionと関数に同等であることに注意してください。ただし、後者のセマンティクスは、Bean が他の手段とは対照的にコンポーネントスキャンによって具体的に発見されたことを示しています。- パラメーター:
metadata- 問題の Bean クラスのアノテーションメタデータ- 導入:
- 3.1.1
AnnotatedGenericBeanDefinition
public AnnotatedGenericBeanDefinition(AnnotationMetadata metadata, MethodMetadata factoryMethodMetadata) アノテーション付きクラスとそのクラスのファクトリメソッドに基づいて、指定されたアノテーションメタデータ用の新しい AnnotatedGenericBeanDefinition を作成します。- パラメーター:
metadata- 問題の Bean クラスのアノテーションメタデータfactoryMethodMetadata- 選択したファクトリメソッドのメタデータ- 導入:
- 4.1.1
メソッドの詳細
getMetadata
インターフェースからコピーされた説明:AnnotatedBeanDefinitionこの Bean 定義の Bean クラスのアノテーションメタデータ(および基本クラスのメタデータ)を取得します。- 次で指定:
- インターフェース
AnnotatedBeanDefinitionのgetMetadata - 戻り値:
- アノテーションメタデータオブジェクト (非
null)
getFactoryMethodMetadata
インターフェースからコピーされた説明:AnnotatedBeanDefinitionこの Bean 定義のファクトリメソッドのメタデータがある場合は、取得します。- 次で指定:
- インターフェース
AnnotatedBeanDefinitionのgetFactoryMethodMetadata - 戻り値:
- ファクトリメソッドメタデータ、ない場合は
null