T - 構成された AnnotatedType によって表されるクラス public interface AnnotatedTypeConfigurator<T> この API は、新しい AnnotatedType インスタンスを構成するためのヘルパーです。コンテナーは、このインターフェースの実装を提供する必要があります。
AnnotatedTypeConfigurator は再利用できません。
このコンフィギュレーターはスレッドセーフではなく、同時に使用できません。
BeforeBeanDiscovery.addAnnotatedType(Class, String), AfterTypeDiscovery.addAnnotatedType(Class, String), ProcessAnnotatedType.configureAnnotatedType()| 修飾子と型 | メソッドと説明 |
|---|---|
AnnotatedTypeConfigurator<T> | add(AnnotationSE annotation) 型にアノテーションを追加します。 |
SetSE<AnnotatedConstructorConfigurator<T>> | constructors() |
SetSE<AnnotatedFieldConfigurator<? super T>> | fields() |
default StreamSE<AnnotatedConstructorConfigurator<T>> | filterConstructors(PredicateSE<AnnotatedConstructor<T>> predicate) |
default StreamSE<AnnotatedFieldConfigurator<? super T>> | filterFields(PredicateSE<AnnotatedField<? super T>> predicate) |
default StreamSE<AnnotatedMethodConfigurator<? super T>> | filterMethods(PredicateSE<AnnotatedMethod<? super T>> predicate) |
AnnotatedType<T> | getAnnotated() |
SetSE<AnnotatedMethodConfigurator<? super T>> | methods() |
AnnotatedTypeConfigurator<T> | remove(PredicateSE<AnnotationSE> predicate) 指定された述語に一致するアノテーションを削除します。 |
default AnnotatedTypeConfigurator<T> | removeAll() すべてのアノテーションを削除します。 |
AnnotatedType<T> getAnnotated()
AnnotatedTypeAnnotatedTypeConfigurator<T> add(AnnotationSE annotation)
annotation - 追加するアノテーション AnnotatedTypeConfigurator<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 - 削除するアノテーションのフィルタリングに使用される PredicateSEdefault AnnotatedTypeConfigurator<T> removeAll()
SetSE<AnnotatedMethodConfigurator<? super T>> methods()
AnnotatedType.getMethods() を反映する AnnotatedMethodConfigurator の不変のセット default StreamSE<AnnotatedMethodConfigurator<? super T>> filterMethods(PredicateSE<AnnotatedMethod<? super T>> predicate)
predicate - 元の AnnotatedMethod のテスト AnnotatedMethodConfigurator のシーケンス AnnotatedMethodConfigurator.getAnnotated()SetSE<AnnotatedFieldConfigurator<? super T>> fields()
AnnotatedType.getFields() を反映する AnnotatedFieldConfigurator の不変のセット default StreamSE<AnnotatedFieldConfigurator<? super T>> filterFields(PredicateSE<AnnotatedField<? super T>> predicate)
predicate - 元の AnnotatedField のテスト AnnotatedFieldConfigurator のシーケンス AnnotatedFieldConfigurator.getAnnotated()SetSE<AnnotatedConstructorConfigurator<T>> constructors()
AnnotatedType.getConstructors() を反映する AnnotatedConstructorConfigurator の不変のセット default StreamSE<AnnotatedConstructorConfigurator<T>> filterConstructors(PredicateSE<AnnotatedConstructor<T>> predicate)
predicate - 元の AnnotatedConstructor のテスト AnnotatedConstructorConfigurator のシーケンス AnnotatedConstructorConfigurator.getAnnotated()Copyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.