Github user muthulee commented on a diff in the pull request:

    https://github.com/apache/stratos/pull/119#discussion_r22154213
  
    --- Diff: 
components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/util/Util.java
 ---
    @@ -169,20 +179,31 @@ public static Integer 
getNumericSystemProperty(Integer defaultValue, String prop
                }
        }
     
    +   /**
    +    * Get the Message topic name for event
    +    * @param event event name
    +    * @return String topic name of the event
    +    */
        public static String getMessageTopicName(Event event) {
                return 
event.getClass().getName().substring(BEGIN_INDEX).replace(".", "/");
        }
     
    -   public static String getEventNameForTopic(String arg0) {
    -           return 
"org.apache.stratos.messaging.event.".concat(arg0.replace("/", "."));
    +   /**
    +    * Get the event name for topic
    +    * @param topic topic Name
    +    * @return String Event name for topic
    +    */
    +   public static String getEventNameForTopic(String topic) {
    +           return 
"org.apache.stratos.messaging.event.".concat(topic.replace("/", "."));
    --- End diff --
    
    Consider using a Constant.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to