You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:53:04 UTC

[sling-org-apache-sling-launchpad-installer] 03/06: SLING-2376 : New Startup Features

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

rombert pushed a commit to annotated tag org.apache.sling.launchpad.installer-1.1.0
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-launchpad-installer.git

commit 1c1b6358ca477761e34236c0ee0960b634fc9f48
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Fri Jan 20 07:53:58 2012 +0000

    SLING-2376 : New Startup Features
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/launchpad/installer@1233798 13f79535-47bb-0310-9956-ffa450edef68
---
 .../apache/sling/launchpad/installer/impl/ServicesListener.java   | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/launchpad/installer/impl/ServicesListener.java b/src/main/java/org/apache/sling/launchpad/installer/impl/ServicesListener.java
index 6d7f08c..5e06ee0 100644
--- a/src/main/java/org/apache/sling/launchpad/installer/impl/ServicesListener.java
+++ b/src/main/java/org/apache/sling/launchpad/installer/impl/ServicesListener.java
@@ -18,6 +18,9 @@
  */
 package org.apache.sling.launchpad.installer.impl;
 
+import java.util.Dictionary;
+import java.util.Hashtable;
+
 import org.apache.sling.installer.api.OsgiInstaller;
 import org.apache.sling.installer.api.event.InstallationListener;
 import org.apache.sling.launchpad.api.LaunchpadContentProvider;
@@ -78,7 +81,10 @@ public class ServicesListener {
         if ( handler != null ) {
             if ( launchpadListenerReg == null ) {
                 final LaunchpadListener launchpadListener = new LaunchpadListener(handler);
-                launchpadListenerReg = this.bundleContext.registerService(InstallationListener.class.getName(), launchpadListener, null);
+                final Dictionary<String, Object> props = new Hashtable<String, Object>();
+                props.put(Constants.SERVICE_DESCRIPTION, "Apache Sling Launchpad Startup Listener");
+                props.put(Constants.SERVICE_VENDOR, "The Apache Software Foundation");
+                launchpadListenerReg = this.bundleContext.registerService(InstallationListener.class.getName(), launchpadListener, props);
             }
         } else {
             if ( launchpadListenerReg != null ) {

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.