インターフェース AnnotatedParameterConfigurator<T>
- 型パラメーター:
T- パラメーターを宣言するメソッドを含むクラス
public interface AnnotatedParameterConfigurator<T>このインターフェースはAnnotatedTypeConfiguratorSPI の一部であり、AnnotatedParameterの定義に役立ちますCDI Lite の実装は、Portable Extensions のサポートを提供する必要はありません。
- 導入:
- 2.0
- 作成者:
- Martin Kouba, Antoine Sabot-Durand
方法の概要
すべてのメソッド インスタンスメソッド 抽象メソッド デフォルトメソッド 修飾子と型 メソッド 説明 AnnotatedParameterConfigurator<T>add(AnnotationSE annotation)パラメーターにアノテーションを追加します。AnnotatedParameter<T>getAnnotated()AnnotatedParameterConfigurator<T>remove(PredicateSE<AnnotationSE> predicate)指定された述語に一致するアノテーションを削除します。default AnnotatedParameterConfigurator<T>removeAll()すべてのアノテーションを削除します。
メソッドの詳細
getAnnotated
AnnotatedParameter<T> getAnnotated()
- 戻り値:
- オリジナルの
AnnotatedParameter
add
AnnotatedParameterConfigurator<T> add(AnnotationSE annotation)
パラメーターにアノテーションを追加します。- パラメーター:
annotation- 追加するアノテーション- 戻り値:
- 自己
remove
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- 削除するアノテーションのフィルタリングに使用されるPredicateSE- 戻り値:
- 自己
removeAll
default AnnotatedParameterConfigurator<T> removeAll()
すべてのアノテーションを削除します。- 戻り値:
- 自己