T
- the class represented by the configured AnnotatedTypepublic interface AnnotatedTypeConfigurator<T>
AnnotatedType
instance. The CDI container must provide an implementation of
this interface.
AnnotatedTypeConfigurator is not reusable.
This configurator is not thread safe and shall not be used concurrently.javax.enterprise.inject.spi.BeforeBeanDiscovery#addAnnotatedType(String)
,
javax.enterprise.inject.spi.AfterTypeDiscovery#addAnnotatedType(String)
,
ProcessAnnotatedType.configureAnnotatedType()
AnnotatedType<T> getAnnotated()
AnnotatedType
AnnotatedTypeConfigurator<T> add(Annotation annotation)
annotation
- to addAnnotatedTypeConfigurator<T> remove(Annotation annotation)
Nonbinding
. The container calls the Object.equals(Object)
method of the annotation member value
to compare values.annotation
- to removeAnnotatedTypeConfigurator<T> remove(Class<? extends Annotation> annotationType)
annotationType
- annotation class to removeAnnotatedTypeConfigurator<T> removeAll()
Set<AnnotatedMethodConfigurator<? super T>> methods()
AnnotatedMethodConfigurator
s reflecting the AnnotatedType.getMethods()
default java.util.stream.Stream<AnnotatedMethodConfigurator<? super T>> filterMethods(java.util.function.Predicate<AnnotatedMethod<? super T>> predicate)
predicate
- Testing the original AnnotatedMethod
AnnotatedMethodConfigurator
s matching the given predicateAnnotatedMethodConfigurator.getAnnotated()
Set<AnnotatedFieldConfigurator<? super T>> fields()
AnnotatedFieldConfigurator
s reflecting the AnnotatedType.getFields()
default java.util.stream.Stream<AnnotatedFieldConfigurator<? super T>> filterFields(java.util.function.Predicate<AnnotatedField<? super T>> predicate)
predicate
- Testing the original AnnotatedField
AnnotatedFieldConfigurator
s matching the given predicateAnnotatedFieldConfigurator.getAnnotated()
Set<AnnotatedConstructorConfigurator<T>> constructors()
AnnotatedConstructorConfigurator
s reflecting the
AnnotatedType.getConstructors()
default java.util.stream.Stream<AnnotatedConstructorConfigurator<T>> filterConstructors(java.util.function.Predicate<AnnotatedConstructor<T>> predicate)
predicate
- Testing the original AnnotatedConstructor
AnnotatedConstructorConfigurator
s matching the given predicateAnnotatedConstructorConfigurator.getAnnotated()
Copyright © 2008-2016 JBoss by Red Hat, Inc.. All Rights Reserved.