|
OSGi™ Service Platform Release 4 Version 4.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.osgi.service.event.Event
An event.
Event
objects are delivered to EventHandler
services which subsrcibe to the topic of the event.
Constructor Summary | |
Event(java.lang.String topic,
java.util.Dictionary properties)
Constructs an event. |
Method Summary | |
boolean |
equals(java.lang.Object object)
Compares this Event object to another object. |
java.lang.Object |
getProperty(java.lang.String name)
Retrieves a property. |
java.lang.String[] |
getPropertyNames()
Returns a list of this event's property names. |
java.lang.String |
getTopic()
Returns the topic of this event. |
int |
hashCode()
Returns a hash code value for the object. |
boolean |
matches(Filter filter)
Tests this event's properties against the given filter. |
java.lang.String |
toString()
Returns the string representation of this event. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Event(java.lang.String topic, java.util.Dictionary properties)
topic
- The topic of the event.properties
- The event's properties (may be null
).
java.lang.IllegalArgumentException
- If topic is not a valid topic name.Method Detail |
public final java.lang.Object getProperty(java.lang.String name)
name
- the name of the property to retrieve
null
if not found.public final java.lang.String[] getPropertyNames()
public final java.lang.String getTopic()
public final boolean matches(Filter filter)
filter
- The filter to test.
public boolean equals(java.lang.Object object)
Event
object to another object.
An event is considered to be equal to another event if the topic is equal and the properties are equal.
object
- The Event
object to be compared.
true
if object
is a
Event
and is equal to this object;
false
otherwise.public int hashCode()
public java.lang.String toString()
|
OSGi™ Service Platform Release 4 Version 4.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |