public interface ArgsProcessor
public
fields annotated by Arg have been initialized before
the process(org.netbeans.spi.sendopts.Env) method is invoked.
The subclass needs to have public default constructor.
For headless NetBeans applications: command line argument processing is the
last step in the boot sequence; services and classes offered by the platform
have been initialized at this point. Application code in process(org.netbeans.spi.sendopts.Env) can safely
use the platform.
| Modifier and Type | Method and Description |
|---|---|
void |
process(Env env)
Called after all fields annotated with
@Arg
are filled with appropriate values. |
void process(Env env) throws CommandException
@Arg
are filled with appropriate values.env - environment for the execution - current working directory,
stdin, stdout, stderrCommandException - if the parameters don't make sense, throw an
exceptionBuilt on February 21 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.