To enable multiple clients to run a subcommand simultaneously, ensure that the implementation of the AdminCommand interface for the subcommand is stateless. To ensure that the implementation of the AdminCommand interface is stateless, annotate the declaration of your implementation with the org.jvnet.hk2.annotations.Scoped annotation. In the @Scoped annotation, set the scope as follows:
To instantiate the subcommand for each lookup, set the scope to PerLookup.class.
To instantiate the subcommand only once for each session, set the scope to Singleton.