You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by fm...@apache.org on 2011/02/04 11:49:38 UTC
svn commit: r1067143 -
/felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/ScrCommand.java
Author: fmeschbe
Date: Fri Feb 4 10:49:37 2011
New Revision: 1067143
URL: http://svn.apache.org/viewvc?rev=1067143&view=rev
Log:
Provide service provider and description properties for the shell command services
Modified:
felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/ScrCommand.java
Modified: felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/ScrCommand.java
URL: http://svn.apache.org/viewvc/felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/ScrCommand.java?rev=1067143&r1=1067142&r2=1067143&view=diff
==============================================================================
--- felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/ScrCommand.java (original)
+++ felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/ScrCommand.java Fri Feb 4 10:49:37 2011
@@ -33,6 +33,7 @@ import org.apache.felix.scr.ScrService;
import org.apache.felix.scr.impl.config.ScrConfiguration;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
+import org.osgi.framework.Constants;
/**
* The <code>ScrCommand</code> class provides the implementations for the
@@ -71,6 +72,8 @@ class ScrCommand
props.put("osgi.command.scope", "scr");
props.put("osgi.command.function", new String[]
{ "config", "disable", "enable", "info", "list" });
+ props.put(Constants.SERVICE_DESCRIPTION, "SCR Gogo Shell Support");
+ props.put(Constants.SERVICE_VENDOR, "The Apache Software Foundation");
bundleContext.registerService(scrGogoCommandClassName, gogoCmd, props);
}
catch (Throwable t)
@@ -85,8 +88,11 @@ class ScrCommand
{
// Register "scr" impl command service as a
// wrapper for the bundle repository service.
+ final Hashtable props = new Hashtable();
+ props.put(Constants.SERVICE_DESCRIPTION, "SCR Legacy Shell Support");
+ props.put(Constants.SERVICE_VENDOR, "The Apache Software Foundation");
bundleContext.registerService(org.apache.felix.shell.Command.class.getName(), new ScrShellCommand(cmd),
- null);
+ props);
}
catch (Throwable th)
{