Annotation Interface AllArguments
An annotation used to specify a member into which the argument collection itself should be
injected. In contrast to the
Argument
annotation no filtering or selection from the
argument list is performed.-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionClass
<? extends Collection> Specifies the collection class to be matched.boolean
Specifies whether the argument collection is optional.
-
Element Details
-
optional
boolean optionalSpecifies whether the argument collection is optional. It may be necessary to specify it as optional if the type of the actual argument collection cannot be assigned to the type of the member to which theAllArguments
annotation is applied.- Returns:
true
if the argument collection is optional.
- Default:
false
-
match
Class<? extends Collection> matchSpecifies the collection class to be matched. Normally, the class to be matched is extracted from the method parameter or field type that is annotated by this annotation. In some cases, however, it may be desirable to match only a sub-class or implementor of the declared type. Caveat: the declared field/parameter type must be assignable from the specified match class.- Returns:
- the match class to be used.
- Default:
java.util.Collection.class
-