org.eclipse.swordfish.internal.core.event
Class EventImpl
java.lang.Object
org.eclipse.swordfish.internal.core.event.EventImpl
- All Implemented Interfaces:
- Event
- Direct Known Subclasses:
- ConfigurationEventImpl, InterceptorExceptionEvent, OperationEventImpl, TrackingEventImpl
public class EventImpl
- extends java.lang.Object
- implements Event
|
Method Summary |
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
Event properties Map. |
java.lang.Object |
getProperty(java.lang.String key)
Convenience method for property access. |
java.lang.String |
getTopic()
Topic identifier. |
void |
setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
|
void |
setProperty(java.lang.String key,
java.lang.Object value)
|
void |
setTopic(java.lang.String topic)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventImpl
public EventImpl()
getProperty
public java.lang.Object getProperty(java.lang.String key)
- Description copied from interface:
Event
- Convenience method for property access.
- Specified by:
getProperty in interface Event
- Parameters:
key - property key String.
- Returns:
- property value or
null if not set.
setProperty
public void setProperty(java.lang.String key,
java.lang.Object value)
getProperties
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
- Description copied from interface:
Event
- Event properties Map.
- Specified by:
getProperties in interface Event
- Returns:
- a Map, may be empty, but never
null.
setProperties
public void setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
getTopic
public java.lang.String getTopic()
- Description copied from interface:
Event
- Topic identifier.
- Specified by:
getTopic in interface Event
- Returns:
- topic String, never
null or empty String.
setTopic
public void setTopic(java.lang.String topic)