public interface InjectionPointConfigurator
InjectionPoint instance.
CDI container must provides an implementation of this interface.
InjectionPointConfigurator is not reusable.
This builder is not thread safe and shall not be used concurrently.ProcessInjectionPoint.configureInjectionPoint()| Modifier and Type | Method and Description |
|---|---|
InjectionPointConfigurator |
addQualifier(Annotation qualifier)
Add the qualifier to the InjectionPoint to build
If the builder declares the
Default qualifier, it's automatically removed. |
InjectionPointConfigurator |
addQualifiers(Annotation... qualifiers)
Add all the qualifiers to the InjectionPoint to build
If the builder declares the
Default qualifier, it's automatically removed. |
InjectionPointConfigurator |
addQualifiers(Set<Annotation> qualifiers)
Add all the qualifiers to the InjectionPoint to build
If the builder declares the
Default qualifier, it's automatically removed. |
InjectionPointConfigurator |
addStereotype(Class<? extends Annotation> stereotype)
Add a stereotype to the InjectionPoint
|
InjectionPointConfigurator |
addStereotypes(Set<Class<? extends Annotation>> stereotypes)
Add all the stereotypes to the InjectionPoint
|
InjectionPointConfigurator |
bean(Bean<?> bean)
Set the
Bean object representing the bean that defines the injection point. |
InjectionPointConfigurator |
delegate(boolean delegate)
Change the delegate status of the built InjectionPoint.
|
InjectionPointConfigurator |
qualifiers(Annotation... qualifiers)
Replace all qualifiers.
|
InjectionPointConfigurator |
qualifiers(Set<Annotation> qualifiers)
Replace all qualifiers.
|
InjectionPointConfigurator |
read(AnnotatedField<?> field)
Read the InjectionPoint information from the given
AnnotatedField. |
InjectionPointConfigurator |
read(AnnotatedParameter<?> param)
Read the InjectionPoint information from the given
AnnotatedParameter. |
InjectionPointConfigurator |
read(Constructor<?> constructor,
int param)
Read the InjectionPoint information from the given
Constructor. |
InjectionPointConfigurator |
read(Field field)
Read the InjectionPoint information from the given
Field. |
InjectionPointConfigurator |
read(InjectionPoint delegate)
Read the InjectionPoint information from the given
InjectionPoint. |
InjectionPointConfigurator |
read(Method method,
int param)
Read the InjectionPoint information from the given
Method. |
InjectionPointConfigurator |
stereotypes(Set<Class<? extends Annotation>> stereotypes)
Replace all the stereotypes to the InjectionPoint
|
InjectionPointConfigurator |
transientField(boolean trans)
Change the transient status of the built InjectionPoint.
|
InjectionPointConfigurator |
type(Type type)
Set the
Type of the InjectionPoint to build. |
InjectionPointConfigurator read(Field field)
Field.
All relevant information is overwritten.field - defining the InjectionPoint.InjectionPointConfigurator read(Method method, int param)
Method.
All relevant information is overwritten.method - defining the InjectionPoint.param - the parameter's index in the Method defining the InjectionPointInjectionPointConfigurator read(Constructor<?> constructor, int param)
Constructor.
All relevant information is overwritten.constructor - defining the InjectionPoint.param - the parameter's index in the Constructor defining the InjectionPointInjectionPointConfigurator read(AnnotatedField<?> field)
AnnotatedField.
All relevant information is overwritten.field - defining the InjectionPointInjectionPointConfigurator read(AnnotatedParameter<?> param)
AnnotatedParameter.
All relevant information is overwritten.param - defining the InjectionPointInjectionPointConfigurator read(InjectionPoint delegate)
InjectionPoint.
All relevant information is overwritten.delegate - the InjectionPoint to get information fromInjectionPointConfigurator type(Type type)
Type of the InjectionPoint to build.type - for the InjectionPoint to buildInjectionPointConfigurator addQualifier(Annotation qualifier)
Default qualifier, it's automatically removed.qualifier - the qualifier to addInjectionPointConfigurator addQualifiers(Annotation... qualifiers)
Default qualifier, it's automatically removed.qualifiers - a varargs or array of qualifiers to addInjectionPointConfigurator addQualifiers(Set<Annotation> qualifiers)
Default qualifier, it's automatically removed.qualifiers - a Set of qualifiers to addInjectionPointConfigurator qualifiers(Annotation... qualifiers)
Default qualifier, it's automatically removed.qualifiers - a varargs or array of qualifiers to replace to existing onesInjectionPointConfigurator qualifiers(Set<Annotation> qualifiers)
Default qualifier, it's automatically removed.qualifiers - a Set of qualifiers to replace to existing onesInjectionPointConfigurator addStereotype(Class<? extends Annotation> stereotype)
stereotype - the stereotype to addInjectionPointConfigurator addStereotypes(Set<Class<? extends Annotation>> stereotypes)
stereotypes - a Set of the Stereotypes to addInjectionPointConfigurator stereotypes(Set<Class<? extends Annotation>> stereotypes)
stereotypes - a Set of Stereotypes to replace the exisiting onesInjectionPointConfigurator bean(Bean<?> bean)
Bean object representing the bean that defines the injection point. If the
injection point does not belong to a bean, return a null value.bean - the bean for this configured InjectionPointInjectionPointConfigurator delegate(boolean delegate)
delegate - boolean to define or undefine the delegate nature of the configured InjectionPointInjectionPointConfigurator transientField(boolean trans)
trans - boolean to define or undefine the transient nature of the configured InjectionPointCopyright © 2008-2016 JBoss by Red Hat, Inc.. All Rights Reserved.