|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=METHOD) public @interface NotAnOption
Marker annotation which indicates that a certain method should not be interpreted as an option, where the command line manager would otherwise do so (i.e., when the method is a non-private setter method).
In the following example, the method setLevel
is interpreted
as an option setter for the option --level
, while setLocale
is not regarded as an option setter method.
public class ContextClass { public void setLevel (int level) { ... } @NotAnOption public void setLocale (Locale locale) { ... } }
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |