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

rombert pushed a commit to annotated tag org.apache.sling.distribution.api-0.1.0
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-distribution-api.git

commit 65a5114212e016eec30dfe7a7ae6e3fe3dd46ce3
Author: Marius Petria <[email protected]>
AuthorDate: Mon Dec 15 16:09:04 2014 +0000

    SLING-4153: changing distribution topic names
    
    git-svn-id: 
https://svn.apache.org/repos/asf/sling/trunk/contrib/extensions/distribution/api@1645681
 13f79535-47bb-0310-9956-ffa450edef68
---
 .../org/apache/sling/distribution/event/DistributionEventType.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/src/main/java/org/apache/sling/distribution/event/DistributionEventType.java 
b/src/main/java/org/apache/sling/distribution/event/DistributionEventType.java
index 3955af4..345083a 100644
--- 
a/src/main/java/org/apache/sling/distribution/event/DistributionEventType.java
+++ 
b/src/main/java/org/apache/sling/distribution/event/DistributionEventType.java
@@ -56,7 +56,7 @@ public enum DistributionEventType {
     /**
      * common event topic base for distribution events
      */
-    public static final String EVENT_TOPIC = "org/apache/sling/distribution";
+    public static final String EVENT_TOPIC_BASE = 
"org/apache/sling/distribution";
 
     /**
      * get the event topic for this event type
@@ -64,7 +64,7 @@ public enum DistributionEventType {
      * @return the event topic
      */
     public String getTopic() {
-        return EVENT_TOPIC + "/" + name();
+        return EVENT_TOPIC_BASE + "/" + name().toLowerCase().replace('_', '/');
     }
 
 }

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

Reply via email to