インターフェース AnnotatedFieldConfigurator<T>
- 型パラメーター:
T
- フィールドを宣言するクラス
public interface AnnotatedFieldConfigurator<T>
このインターフェースは
AnnotatedTypeConfigurator
SPI の一部であり、AnnotatedField
の定義に役立ちます CDI Lite の実装は、Portable Extensions のサポートを提供する必要はありません。
- 導入:
- 2.0
- 作成者:
- Martin Kouba, Antoine Sabot-Durand
メソッドのサマリー
修飾子と型メソッド説明add
(AnnotationSE annotation) フィールドにアノテーションを追加します。remove
(PredicateSE<AnnotationSE> predicate) 指定された述語に一致するアノテーションを削除します。default AnnotatedFieldConfigurator<T>
すべてのアノテーションを削除します。
メソッドの詳細
getAnnotated
AnnotatedField<T> getAnnotated()- 戻り値:
- オリジナルの
AnnotatedField
add
フィールドにアノテーションを追加します。- パラメーター:
annotation
- 追加するアノテーション- 戻り値:
- 自己
remove
指定された述語に一致するアノテーションを削除します。述語の例:
// To remove all the annotations: (a) -> true // To remove annotations with a concrete annotation type: (a) -> a.annotationType().equals(Foo.class) // To remove annotation equal to a specified object: (a) -> a.equals(fooAnnotation) // To remove annotations that are considered equivalent for the purposes of typesafe resolution: (a) -> beanManager.areQualifiersEquivalent(a, fooQualifier) (a) -> beanManager.areInterceptorBindingsEquivalent(a, fooInterceptorBinding)
- パラメーター:
predicate
- 削除するアノテーションのフィルタリングに使用されるPredicate
SE- 戻り値:
- 自己
removeAll
すべてのアノテーションを削除します。- 戻り値:
- 自己