admin@glassfish.java.net

Getting a command name from an AdminCommand

From: Joe Di Pol <joe.dipol_at_oracle.com>
Date: Thu, 10 Jun 2010 11:07:05 -0700

Newbie question...

Is there a simple way to get the command name from
an AdminCommand? I've written code to do it through
introspection, but I was wondering if there was
already a method for doing this.

I see CommandModel has a getCommandName(), but it's
not obvious to me how to get a CommandModel without
first knowing the command name.

Joe