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.BundleContextctx
-
Constructor Summary
Constructors Constructor Description OSGiShellCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(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 valuesvoidpostConstruct()
-
-
-
Method Detail
-
execute
public void execute(AdminCommandContext context)
Description copied from interface:AdminCommandExecutes 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:
executein interfaceAdminCommand- Parameters:
context- information
-
postConstruct
public void postConstruct()
- Specified by:
postConstructin interfaceorg.glassfish.hk2.api.PostConstruct
-
-