public class InjectionMetadata extends ObjectSE
AutowiredAnnotationBeanPostProcessor
、CommonAnnotationBeanPostProcessor
、PersistenceAnnotationBeanPostProcessor
で使用されます。
修飾子と型 | クラスと説明 |
---|---|
static class | InjectionMetadata.InjectedElement 単一の注入された要素。 |
修飾子と型 | フィールドと説明 |
---|---|
static InjectionMetadata | EMPTY 何もしないコールバックを持つ空の InjectionMetadata インスタンス。 |
コンストラクターと説明 |
---|
InjectionMetadata(ClassSE<?> targetClass, CollectionSE<InjectionMetadata.InjectedElement> elements) 新しい InjectionMetadata instance を作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
void | checkConfigMembers(RootBeanDefinition beanDefinition) |
void | clear(PropertyValues pvs) 含まれている要素のプロパティスキップをクリアします。 |
static InjectionMetadata | forElements(CollectionSE<InjectionMetadata.InjectedElement> elements, ClassSE<?> clazz) 空の要素の場合は、 InjectionMetadata インスタンスを返します。 |
void | inject(ObjectSE target, StringSE beanName, PropertyValues pvs) |
protected boolean | needsRefresh(ClassSE<?> clazz) このメタデータインスタンスをリフレッシュする必要があるかどうかを判断します。 |
static boolean | needsRefresh(InjectionMetadata metadata, ClassSE<?> clazz) 特定のインジェクションメタデータをリフレッシュする必要があるかどうかを確認します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public static final InjectionMetadata EMPTY
InjectionMetadata
インスタンス。public InjectionMetadata(ClassSE<?> targetClass, CollectionSE<InjectionMetadata.InjectedElement> elements)
InjectionMetadata instance
を作成します。 要素がない場合に EMPTY
インスタンスを再利用するには、forElements(java.util.Collection<org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement>, java.lang.Class<?>)
を使用することをお勧めします。
targetClass
- ターゲットクラス elements
- 注入する関連要素 forElements(java.util.Collection<org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement>, java.lang.Class<?>)
protected boolean needsRefresh(ClassSE<?> clazz)
clazz
- 現在のターゲットクラス true
はリフレッシュを示し、false
はそれ以外の場合 public void checkConfigMembers(RootBeanDefinition beanDefinition)
public void inject(ObjectSE target, @Nullable StringSE beanName, @Nullable PropertyValues pvs) throws ThrowableSE
ThrowableSE
public void clear(@Nullable PropertyValues pvs)
public static InjectionMetadata forElements(CollectionSE<InjectionMetadata.InjectedElement> elements, ClassSE<?> clazz)
InjectionMetadata
インスタンスを返します。elements
- 注入する要素 (空の可能性あり)clazz
- ターゲットクラス InjectionMetadata(Class, Collection)
インスタンス public static boolean needsRefresh(@Nullable InjectionMetadata metadata, ClassSE<?> clazz)
metadata
- 既存のメタデータインスタンス clazz
- 現在のターゲットクラス true
はリフレッシュを示し、false
はそれ以外の場合 needsRefresh(Class)