karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject git commit: [KARAF-1553] Command service references should be AUTO_EXPORT_INTERFACES
Date Thu, 10 Jul 2014 15:22:04 GMT
Repository: karaf
Updated Branches:
  refs/heads/master b6dd89383 -> 18f417cd7


[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/18f417cd
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/18f417cd
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/18f417cd

Branch: refs/heads/master
Commit: 18f417cd7de3880b8f8c6f1b75d9e625ccecf9ea
Parents: b6dd893
Author: Guillaume Nodet <gnodet@gmail.com>
Authored: Thu Jul 10 16:29:55 2014 +0200
Committer: Guillaume Nodet <gnodet@gmail.com>
Committed: Thu Jul 10 17:21:56 2014 +0200

----------------------------------------------------------------------
 .../apache/karaf/shell/console/commands/NamespaceHandler.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf/blob/18f417cd/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 3cf51d9..a534eea 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
@@ -166,7 +166,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.setAutoExport(ServiceMetadata.AUTO_EXPORT_INTERFACES);
         commandService.setServiceComponent(command);
 
         String scope;
@@ -232,7 +232,7 @@ public class NamespaceHandler implements org.apache.aries.blueprint.NamespaceHan
         MutableServiceMetadata subShellCommandService = context.createMetadata(MutableServiceMetadata.class);
         subShellCommandService.setActivation(MutableServiceMetadata.ACTIVATION_LAZY);
         subShellCommandService.setId(subShellName);
-        subShellCommandService.setAutoExport(ServiceMetadata.AUTO_EXPORT_ALL_CLASSES);
+        subShellCommandService.setAutoExport(ServiceMetadata.AUTO_EXPORT_INTERFACES);
         subShellCommandService.setServiceComponent(subShellCommand);
         subShellCommandService.addServiceProperty(createStringValue(context, "osgi.command.scope"),
createStringValue(context, "*"));
         subShellCommandService.addServiceProperty(createStringValue(context, "osgi.command.function"),
createStringValue(context, scope));


Mime
View raw message