Sun GlassFish Enterprise Server v3 Prelude Add-On Component Development Guide

Setting the Context of an asadmin Command

The org.glassfish.api.admin.AdminCommandContext class provides the following services to an asadmin command:

To set the context of an asadmin command, pass an AdminCommandContext object to the execute method of your implementation.