To enable multiple containers to be independently packaged and loaded, the administrative command infrastructure of GlassFish Server provides the following features:
Location independence. Administration subcommands can be loaded from any add-on component that is known to GlassFish Server.
Extensibility. Administrative subcommands that are available to GlassFish Server are discovered on demand and not obtained from a preset list of subcommands.
Support for the HK2 architecture. Subcommands can use injection to express their dependencies, and extraction to provide results to a user. For more information, see Chapter 2, Writing HK2 Components.