You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jg...@apache.org on 2014/07/26 03:51:55 UTC
[13/50] git commit: [KARAF-1553] Command service references should be
AUTO_EXPORT_INTERFACES
[KARAF-1553] Command service references should be AUTO_EXPORT_INTERFACES
Project: http://git-wip-us.apache.org/repos/asf/karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/12a40ccc
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/12a40ccc
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/12a40ccc
Branch: refs/remotes/karaf-2.3.x
Commit: 12a40ccc99d9b1dde6ebe3050fcec5460d071b5f
Parents: bdf1ef7
Author: Guillaume Nodet <gn...@gmail.com>
Authored: Thu Jul 10 16:25:27 2014 +0200
Committer: Guillaume Nodet <gn...@gmail.com>
Committed: Thu Jul 10 16:25:27 2014 +0200
----------------------------------------------------------------------
.../apache/karaf/shell/console/commands/NamespaceHandler.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/karaf/blob/12a40ccc/shell/console/src/main/java/org/apache/karaf/shell/console/commands/NamespaceHandler.java
----------------------------------------------------------------------
diff --git a/shell/console/src/main/java/org/apache/karaf/shell/console/commands/NamespaceHandler.java b/shell/console/src/main/java/org/apache/karaf/shell/console/commands/NamespaceHandler.java
index 662392a..dce14ad 100644
--- a/shell/console/src/main/java/org/apache/karaf/shell/console/commands/NamespaceHandler.java
+++ b/shell/console/src/main/java/org/apache/karaf/shell/console/commands/NamespaceHandler.java
@@ -147,9 +147,7 @@ public class NamespaceHandler implements org.apache.aries.blueprint.NamespaceHan
MutableServiceMetadata commandService = context.createMetadata(MutableServiceMetadata.class);
commandService.setActivation(MutableServiceMetadata.ACTIVATION_LAZY);
commandService.setId(getName());
- //commandService.setAutoExport(ServiceMetadata.AUTO_EXPORT_ALL_CLASSES);
- commandService.addInterface(CompletableFunction.class.getName());
- commandService.addInterface(Function.class.getName());
+ commandService.setAutoExport(ServiceMetadata.AUTO_EXPORT_INTERFACES);
commandService.setServiceComponent(command);
commandService.addServiceProperty(createStringValue(context, "osgi.command.scope"),
createStringValue(context, scope));