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

rombert pushed a commit to annotated tag org.apache.sling.commons.osgi-2.0.6
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-osgi.git

commit 8ad219ed77eed57b1b7c35a64b38d0edae5c6237
Author: Carsten Ziegeler <[email protected]>
AuthorDate: Tue Dec 8 13:27:27 2009 +0000

    Add some javadocs.
    
    git-svn-id: 
https://svn.apache.org/repos/asf/sling/trunk/bundles/commons/osgi@888395 
13f79535-47bb-0310-9956-ffa450edef68
---
 .../org/apache/sling/commons/osgi/ManifestHeader.java    |  2 +-
 .../java/org/apache/sling/commons/osgi/OsgiUtil.java     | 16 ++++++++++++++--
 2 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/sling/commons/osgi/ManifestHeader.java 
b/src/main/java/org/apache/sling/commons/osgi/ManifestHeader.java
index 72c951b..1585cbe 100644
--- a/src/main/java/org/apache/sling/commons/osgi/ManifestHeader.java
+++ b/src/main/java/org/apache/sling/commons/osgi/ManifestHeader.java
@@ -51,7 +51,7 @@ public class ManifestHeader {
         String getAttributeValue(String name);
 
         String getDirectiveValue(String name);
-}
+    }
 
     /** The entries for this header. */
     private Entry[] entries = new Entry[0];
diff --git a/src/main/java/org/apache/sling/commons/osgi/OsgiUtil.java 
b/src/main/java/org/apache/sling/commons/osgi/OsgiUtil.java
index 8a912d3..dfa5f7d 100644
--- a/src/main/java/org/apache/sling/commons/osgi/OsgiUtil.java
+++ b/src/main/java/org/apache/sling/commons/osgi/OsgiUtil.java
@@ -225,8 +225,20 @@ public class OsgiUtil {
         return defaultArray;
     }
 
+    /**
+     * Create an osgi event with the given topic and properties.
+     * If a bundle parameter is provided the symbolic name is added
+     * as a property.
+     * If a service parameter is provided, information about the service
+     * is added to the properties.
+     * @param sourceBundle Optional source bundle
+     * @param sourceService Optional source service
+     * @param topic The event topic.
+     * @param props A non-null map of properties for the event.
+     * @return The OSGi event.
+     */
     public static Event createEvent(Bundle sourceBundle,
-            ServiceReference sourceService, String eventName,
+            ServiceReference sourceService, String topic,
             Map<String, Object> props) {
 
         // get a private copy of the properties
@@ -259,7 +271,7 @@ public class OsgiUtil {
             new Long(System.currentTimeMillis()));
 
         // create the event
-        return new Event(eventName, table);
+        return new Event(topic, table);
     }
 
 }

-- 
To stop receiving notification emails like this one, please contact
"[email protected]" <[email protected]>.

Reply via email to