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