com.levigo.util.swing.action.injection
Annotation Type AllArguments


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @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
 Class<? extends Collection> match
          Specifies the collection class to be matched.
 boolean optional
          Specifies whether the argument collection is optional.
 

optional

public abstract boolean optional
Specifies 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 the AllArguments annotation is applied.

Returns:
true if the argument collection is optional.
Default:
false

match

public abstract Class<? extends Collection> match
Specifies the collection class to be matched. Normally, the class to be matched is extracted from the method parameter 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 parameter type must be assignable from the specified match class.

Returns:
the match class to be used.
Default:
java.util.Collection.class


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.