T
- フィールドを宣言するクラス public interface AnnotatedFieldConfigurator<T>
AnnotatedTypeConfigurator
SPI の一部であり、AnnotatedField
の定義に役立ちます 修飾子と型 | メソッドと説明 |
---|---|
AnnotatedFieldConfigurator<T> | add(AnnotationSE annotation) フィールドにアノテーションを追加します。 |
AnnotatedField<T> | getAnnotated() |
AnnotatedFieldConfigurator<T> | remove(PredicateSE<AnnotationSE> predicate) 指定された述語に一致するアノテーションを削除します。 |
default AnnotatedFieldConfigurator<T> | removeAll() すべてのアノテーションを削除します。 |
AnnotatedField<T> getAnnotated()
AnnotatedField
AnnotatedFieldConfigurator<T> add(AnnotationSE annotation)
annotation
- 追加するアノテーション AnnotatedFieldConfigurator<T> remove(PredicateSE<AnnotationSE> predicate)
述語の例:
// 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
SEdefault AnnotatedFieldConfigurator<T> removeAll()
Copyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.