Interface ParameterConfig
- 
- All Superinterfaces:
- DeclarationConfig
 
 public interface ParameterConfig extends DeclarationConfig Allows adding annotations to and removing annotations from a method parameter. Note that the method parameter is not physically altered, the modifications are only seen by the CDI container.- Since:
- 4.0
- See Also:
- Enhancement
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description ParameterConfigaddAnnotation(AnnotationInfo annotation)Adds given annotation to this method parameter.ParameterConfigaddAnnotation(Annotation annotation)Adds given annotation to this method parameter.ParameterConfigaddAnnotation(Class<? extends Annotation> annotationType)Adds a marker annotation of given type to this method parameter.ParameterInfoinfo()Returns theParameterInfocorresponding to this transformed method parameter.ParameterConfigremoveAllAnnotations()Removes all annotations from this method parameter.ParameterConfigremoveAnnotation(Predicate<AnnotationInfo> predicate)Removes all annotations matching given predicate from this method parameter.
 
- 
- 
- 
Method Detail- 
infoParameterInfo info() Returns theParameterInfocorresponding to this transformed method parameter.- Specified by:
- infoin interface- DeclarationConfig
- Returns:
- the ParameterInfocorresponding to this transformed method parameter, nevernull
 
 - 
addAnnotationParameterConfig addAnnotation(Class<? extends Annotation> annotationType) Adds a marker annotation of given type to this method parameter. Does not allow configuring annotation members.- Specified by:
- addAnnotationin interface- DeclarationConfig
- Parameters:
- annotationType- the annotation type, must not be- null
- Returns:
- this configurator object, to allow fluent usage
 
 - 
addAnnotationParameterConfig addAnnotation(AnnotationInfo annotation) Adds given annotation to this method parameter. TheAnnotationInfocan be obtained from an annotation target, or constructed from scratch usingAnnotationBuilder.- Specified by:
- addAnnotationin interface- DeclarationConfig
- Parameters:
- annotation- the annotation to add to this method parameter, must not be- null
- Returns:
- this configurator object, to allow fluent usage
 
 - 
addAnnotationParameterConfig addAnnotation(Annotation annotation) Adds given annotation to this method parameter. The annotation instance is typically a subclass ofAnnotationLiteral.- Specified by:
- addAnnotationin interface- DeclarationConfig
- Parameters:
- annotation- the annotation to add to this method parameter, must not be- null
- Returns:
- this configurator object, to allow fluent usage
 
 - 
removeAnnotationParameterConfig removeAnnotation(Predicate<AnnotationInfo> predicate) Removes all annotations matching given predicate from this method parameter.- Specified by:
- removeAnnotationin interface- DeclarationConfig
- Parameters:
- predicate- an annotation predicate, must not be- null
- Returns:
- this configurator object, to allow fluent usage
 
 - 
removeAllAnnotationsParameterConfig removeAllAnnotations() Removes all annotations from this method parameter.- Specified by:
- removeAllAnnotationsin interface- DeclarationConfig
- Returns:
- this configurator object, to allow fluent usage
 
 
- 
 
-