クラス 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
フィールドのサマリー
クラス org.springframework.beans.factory.support.SimpleAutowireCandidateResolver から継承されたフィールド
INSTANCE
コンストラクターのサマリー
コンストラクターメソッドのサマリー
修飾子と型メソッド説明protected ObjectSE
buildLazyResolutionProxy
(DependencyDescriptor descriptor, StringSE beanName) ClassSE<?>
getLazyResolutionProxyClass
(DependencyDescriptor descriptor, StringSE beanName) インジェクションポイントで要求された場合、依存関係ターゲットの遅延解決のためのプロキシクラスを決定します。getLazyResolutionProxyIfNecessary
(DependencyDescriptor descriptor, StringSE beanName) インジェクションポイントで要求された場合、実際の依存関係ターゲットの遅延解決のためのプロキシを構築します。protected boolean
isLazy
(DependencyDescriptor descriptor) クラス org.springframework.beans.factory.annotation.QualifierAnnotationAutowireCandidateResolver から継承されたメソッド
addQualifierType, checkQualifier, checkQualifiers, extractValue, findValue, getFactoryMethodAnnotation, getQualifiedElementAnnotation, getSuggestedName, getSuggestedValue, hasQualifier, isAutowireCandidate, isQualifier, isRequired, setValueAnnotationType
クラス org.springframework.beans.factory.support.GenericTypeAwareAutowireCandidateResolver から継承されたメソッド
checkGenericTypeMatch, cloneIfNecessary, getBeanFactory, getResolvedDecoratedDefinition, getReturnTypeForFactoryMethod, setBeanFactory
クラス org.springframework.beans.factory.support.SimpleAutowireCandidateResolver から継承されたメソッド
resolveAutowireCandidates, resolveAutowireCandidates
コンストラクターの詳細
ContextAnnotationAutowireCandidateResolver
public ContextAnnotationAutowireCandidateResolver()
メソッドの詳細
getLazyResolutionProxyIfNecessary
@Nullable public ObjectSE getLazyResolutionProxyIfNecessary(DependencyDescriptor descriptor, @Nullable StringSE beanName) インターフェースからコピーされた説明:AutowireCandidateResolver
インジェクションポイントで要求された場合、実際の依存関係ターゲットの遅延解決のためのプロキシを構築します。デフォルトの実装は、単に
null
を返します。- パラメーター:
descriptor
- ターゲットメソッドのパラメーターまたはフィールドの記述子beanName
- インジェクションポイントを含む Bean の名前- 戻り値:
- 実際の依存関係ターゲットの遅延解決プロキシ、または直接解決を実行する場合は
null
getLazyResolutionProxyClass
@Nullable public ClassSE<?> getLazyResolutionProxyClass(DependencyDescriptor descriptor, @Nullable StringSE beanName) インターフェースからコピーされた説明:AutowireCandidateResolver
インジェクションポイントで要求された場合、依存関係ターゲットの遅延解決のためのプロキシクラスを決定します。デフォルトの実装は、単に
null
を返します。- パラメーター:
descriptor
- ターゲットメソッドのパラメーターまたはフィールドの記述子beanName
- インジェクションポイントを含む Bean の名前- 戻り値:
- 依存関係ターゲットの遅延解決プロキシクラス (存在する場合)
isLazy
buildLazyResolutionProxy
protected ObjectSE buildLazyResolutionProxy(DependencyDescriptor descriptor, @Nullable StringSE beanName)