クラス ContextAnnotationAutowireCandidateResolver
java.lang.ObjectSE
org.springframework.beans.factory.support.SimpleAutowireCandidateResolver
org.springframework.beans.factory.support.GenericTypeAwareAutowireCandidateResolver
org.springframework.beans.factory.annotation.QualifierAnnotationAutowireCandidateResolver
org.springframework.context.annotation.ContextAnnotationAutowireCandidateResolver
- 実装されているすべてのインターフェース:
CloneableSE, Aware, BeanFactoryAware, AutowireCandidateResolver
public class ContextAnnotationAutowireCandidateResolver
extends QualifierAnnotationAutowireCandidateResolver
AutowireCandidateResolver ストラテジーインターフェースの完全な実装。修飾子アノテーションと、context.annotation パッケージの Lazy アノテーションによる遅延解決のサポートを提供します。- 導入:
- 4.0
- 作成者:
- Juergen Hoeller
フィールドのサマリー
クラス SimpleAutowireCandidateResolver から継承されたフィールド
INSTANCEコンストラクターの概要
コンストラクター方法の概要
修飾子と型メソッド説明protected ObjectSEbuildLazyResolutionProxy(DependencyDescriptor descriptor, @Nullable StringSE beanName) getLazyResolutionProxyClass(DependencyDescriptor descriptor, @Nullable StringSE beanName) インジェクションポイントで要求された場合、依存関係ターゲットの遅延解決のためのプロキシクラスを決定します。getLazyResolutionProxyIfNecessary(DependencyDescriptor descriptor, @Nullable StringSE beanName) インジェクションポイントで要求された場合、実際の依存関係ターゲットの遅延解決のためのプロキシを構築します。protected booleanisLazy(DependencyDescriptor descriptor) クラス QualifierAnnotationAutowireCandidateResolver から継承されたメソッド
addQualifierType, checkQualifier, checkQualifiers, extractValue, findValue, getFactoryMethodAnnotation, getQualifiedElementAnnotation, getSuggestedName, getSuggestedValue, hasQualifier, isAutowireCandidate, isQualifier, isRequired, setValueAnnotationTypeクラス GenericTypeAwareAutowireCandidateResolver から継承されたメソッド
checkGenericTypeMatch, cloneIfNecessary, getBeanFactory, getResolvedDecoratedDefinition, getReturnTypeForFactoryMethod, setBeanFactory
コンストラクターの詳細
ContextAnnotationAutowireCandidateResolver
public ContextAnnotationAutowireCandidateResolver()
メソッドの詳細
getLazyResolutionProxyIfNecessary
public @Nullable ObjectSE getLazyResolutionProxyIfNecessary(DependencyDescriptor descriptor, @Nullable StringSE beanName) インターフェースからコピーされた説明:AutowireCandidateResolverインジェクションポイントで要求された場合、実際の依存関係ターゲットの遅延解決のためのプロキシを構築します。デフォルトの実装は、単に
nullを返します。- パラメーター:
descriptor- ターゲットメソッドのパラメーターまたはフィールドの記述子beanName- インジェクションポイントを含む Bean の名前- 戻り値:
- 実際の依存関係ターゲットの遅延解決プロキシ、または直接解決を実行する場合は
null
getLazyResolutionProxyClass
public @Nullable ClassSE<?> getLazyResolutionProxyClass(DependencyDescriptor descriptor, @Nullable StringSE beanName) インターフェースからコピーされた説明:AutowireCandidateResolverインジェクションポイントで要求された場合、依存関係ターゲットの遅延解決のためのプロキシクラスを決定します。デフォルトの実装は、単に
nullを返します。- パラメーター:
descriptor- ターゲットメソッドのパラメーターまたはフィールドの記述子beanName- インジェクションポイントを含む Bean の名前- 戻り値:
- 依存関係ターゲットの遅延解決プロキシクラス (存在する場合)
isLazy
buildLazyResolutionProxy
protected ObjectSE buildLazyResolutionProxy(DependencyDescriptor descriptor, @Nullable StringSE beanName)