Annotation Interface ComponentParam
Specifies additional restrictions when resolving a constructor parameter whose type is another algorithm component.
Use this annotation when the default recursive resolution must exclude one or more implementations.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionClass<?>[]Disallowed classes for recursive components.intMaximum number of elements when this annotation is used on a list or array.intMinimum number of elements when this annotation is used on a list or array.
-
Element Details
-
disallowed
Class<?>[] disallowedDisallowed classes for recursive components. All derived classes from the disallowed list will be disallowed too. Each disallowed class must be assignable to the annotated parameter type, or to its element type when the parameter is aListor an array.- Returns:
- disallowed classes
- Default:
{}
-
min
int minMinimum number of elements when this annotation is used on a list or array. Ignored for scalar component parameters.- Returns:
- minimum collection size, inclusive
- Default:
0
-
max
int maxMaximum number of elements when this annotation is used on a list or array. Ignored for scalar component parameters.- Returns:
- maximum collection size, inclusive
- Default:
3
-