Class OSGiShellCommand

  • All Implemented Interfaces:
    AdminCommand, org.glassfish.hk2.api.PostConstruct

    @Service(name="osgi")
    @CommandLock(SHARED)
    @PerLookup
    @TargetType({CLUSTERED_INSTANCE,STANDALONE_INSTANCE})
    public class OSGiShellCommand
    extends Object
    implements AdminCommand, org.glassfish.hk2.api.PostConstruct
    A simple AdminCommand that bridges to the Felix Shell Service. Since the Felix Shell Service is compatible with all OSGi platforms, this command is named as osgi instead of felix.
    Author:
    ancoron
    • Field Detail

      • ctx

        protected org.osgi.framework.BundleContext ctx
    • Constructor Detail

      • OSGiShellCommand

        public OSGiShellCommand()
    • Method Detail

      • execute

        public void execute​(AdminCommandContext context)
        Description copied from interface: AdminCommand
        Executes the command with the command parameters passed as Properties where the keys are the parameter names and the values are the parameter values
        Specified by:
        execute in interface AdminCommand
        Parameters:
        context - information
      • postConstruct

        public void postConstruct()
        Specified by:
        postConstruct in interface org.glassfish.hk2.api.PostConstruct