You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2021/05/04 06:38:07 UTC

[karaf] branch main updated: [KARAF-7129] Add RequireService(ConfigurationAdmin.class) on SSH Activator to track configadmin service

This is an automated email from the ASF dual-hosted git repository.

jbonofre pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/karaf.git


The following commit(s) were added to refs/heads/main by this push:
     new 8c2d5f9  [KARAF-7129] Add RequireService(ConfigurationAdmin.class) on SSH Activator to track configadmin service
     new 9bd369a  Merge pull request #1360 from jbonofre/KARAF-7129
8c2d5f9 is described below

commit 8c2d5f928b3ddd3b9786e9a6b0b37a38dddaf974
Author: jbonofre <jb...@apache.org>
AuthorDate: Tue May 4 06:18:12 2021 +0200

    [KARAF-7129] Add RequireService(ConfigurationAdmin.class) on SSH Activator to track configadmin service
---
 shell/ssh/src/main/java/org/apache/karaf/shell/ssh/Activator.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/shell/ssh/src/main/java/org/apache/karaf/shell/ssh/Activator.java b/shell/ssh/src/main/java/org/apache/karaf/shell/ssh/Activator.java
index 70e189a..9e2504f 100644
--- a/shell/ssh/src/main/java/org/apache/karaf/shell/ssh/Activator.java
+++ b/shell/ssh/src/main/java/org/apache/karaf/shell/ssh/Activator.java
@@ -40,6 +40,7 @@ import org.apache.sshd.server.forward.AcceptAllForwardingFilter;
 import org.apache.sshd.server.scp.ScpCommandFactory;
 import org.apache.sshd.server.subsystem.sftp.SftpSubsystemFactory;
 import org.osgi.framework.ServiceReference;
+import org.osgi.service.cm.ConfigurationAdmin;
 import org.osgi.service.cm.ManagedService;
 import org.osgi.util.tracker.ServiceTracker;
 import org.slf4j.Logger;
@@ -49,7 +50,7 @@ import org.slf4j.LoggerFactory;
  * Activate this bundle
  */
 @Services(
-        requires = @RequireService(SessionFactory.class)
+        requires = { @RequireService(SessionFactory.class), @RequireService(ConfigurationAdmin.class) }
 )
 @Managed("org.apache.karaf.shell")
 public class Activator extends BaseActivator implements ManagedService {