Factory method that composes individual options into groups.
In some situations it is useful and sometimes even necessary to
enforce certain relationships among options provided by some,
potentially different modules.
A subclass of this class shall be registered in
META-INF/services/org.netbeans.spi.sendopts.OptionProcessor
file (see Lookup
for description of how to do it and why)
in order to register it for participation on handling
and processing of command line options initiated by
org.netbeans.api.sendopts.CommandLine.getDefault 's
org.netbeans.api.sendopts.CommandLine.process .
When the
Option s provided by this processor are found
on the command line and are consistent, this processor's
OptionProcessor.process method is going to be called to handle their values and invoke an action.
The usual pattern for writing a subclass of processor is:
public class MyProcessor extends OptionProcessor {
private Option option1 = ...;
private Option option2 = ...;
private Option option3 = ...;
protected Set