|Skip Navigation Links|
|Exit Print View|
|Oracle GlassFish Server 3.1 Add-On Component Development Guide|
To enable an asadmin subcommand to run, implement the execute method in your implementation of the AdminCommand interface. The declaration of the execute method in your implementation must be as follows.
public void execute(AdminCommandContext context);
Pass each parameter of the subcommand as a property to your implementation of the execute method. Set the key of the property to the parameter name and set the value of the property to the parameter's value.