org.ocd.msgbus
Class MsgBusMessage
java.lang.Object
|
+--org.ocd.msgbus.MsgBusMessage
- public class MsgBusMessage
- extends java.lang.Object
Constructor Summary |
MsgBusMessage(java.lang.Object source)
Creates a new MsgBusMessage |
MsgBusMessage(java.lang.Object source,
java.util.Hashtable params)
Creates a new MsgBusMessage |
MsgBusMessage(java.lang.Object source,
java.util.Hashtable params,
boolean resultRequested)
Creates a new MsgBusMessage |
Method Summary |
java.lang.Object |
get(java.lang.String name)
Gets a value from the parameters object |
java.util.Hashtable |
getParameters()
Get the Parameters passed with this Event |
java.lang.Object |
getSource()
returns the source of this event |
void |
put(java.lang.String name,
java.lang.Object value)
Puts a value into the parameters object |
boolean |
resultWasRequested()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MsgBusMessage
public MsgBusMessage(java.lang.Object source,
java.util.Hashtable params)
- Creates a new MsgBusMessage
- Parameters:
a
- Soft Reference is created for the Source object.pParams
- contains the parameters that should be passed to a listener
MsgBusMessage
public MsgBusMessage(java.lang.Object source)
- Creates a new MsgBusMessage
- Parameters:
an
- Object that is the source of this Message
MsgBusMessage
public MsgBusMessage(java.lang.Object source,
java.util.Hashtable params,
boolean resultRequested)
- Creates a new MsgBusMessage
- Parameters:
a
- Soft Reference is created for the Source object.pParams
- contains the parameters that should be passed to a listenertrue
- if the source is requesting a result
getSource
public java.lang.Object getSource()
- returns the source of this event
- Returns:
- soruce
getParameters
public java.util.Hashtable getParameters()
- Get the Parameters passed with this Event
- Returns:
- parameters
put
public void put(java.lang.String name,
java.lang.Object value)
- Puts a value into the parameters object
- Parameters:
name
- of valuevalue
- of parameter
get
public java.lang.Object get(java.lang.String name)
- Gets a value from the parameters object
- Parameters:
name
- of value- Returns:
- value of parameter
resultWasRequested
public boolean resultWasRequested()
- Returns:
- true if the source of this event has requested a result.