Package org.glassfish.osgi.cli.remote
Class OSGiShellCommand
- java.lang.Object
-
- org.glassfish.osgi.cli.remote.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 Summary
Fields Modifier and Type Field Description protected org.osgi.framework.BundleContext
ctx
-
Constructor Summary
Constructors Constructor Description OSGiShellCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(AdminCommandContext context)
Executes the command with the command parameters passed as Properties where the keys are the parameter names and the values are the parameter valuesvoid
postConstruct()
-
-
-
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 interfaceAdminCommand
- Parameters:
context
- information
-
postConstruct
public void postConstruct()
- Specified by:
postConstruct
in interfaceorg.glassfish.hk2.api.PostConstruct
-
-