org.apache.felix.ipojo.handler.event
Class EventUtil

java.lang.Object
  extended by org.apache.felix.ipojo.handler.event.EventUtil

public class EventUtil
extends java.lang.Object

Utility methods.

Author:
Felix Project Team

Constructor Summary
EventUtil()
           
 
Method Summary
static boolean matches(java.lang.String topic, java.lang.String topicPattern)
          Test that the given topic match with the given topic pattern.
static boolean matches(java.lang.String topic, java.lang.String[] topicPatterns)
          Test that the given topic match with the given topic patterns.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventUtil

public EventUtil()
Method Detail

matches

public static boolean matches(java.lang.String topic,
                              java.lang.String topicPattern)
Test that the given topic match with the given topic pattern.

Parameters:
topic - : topic to test.
topicPattern - : topic pattern
Returns:
true if it matches.

matches

public static boolean matches(java.lang.String topic,
                              java.lang.String[] topicPatterns)
Test that the given topic match with the given topic patterns.

Parameters:
topic - : topic to test.
topicPatterns - : topic patterns
Returns:
true if it matches.