|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oranjestad.commons.beanutils.messaging.GenericMessage
public class GenericMessage
Generic messages represents an invocation to a callback interface.
Messages can be manipulated however it's original information is always preserved via.
getOriginalArguments()
getOriginalMethod()
getOriginalChannel()
Constructor Summary | |
---|---|
protected |
GenericMessage()
Required for serialization |
|
GenericMessage(GenericMessage other)
Copy constructor |
|
GenericMessage(java.lang.reflect.Method theMethod,
java.lang.Object[] theArguments)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
|
java.lang.Object[] |
getArguments()
|
Channel |
getChannel()
|
java.lang.reflect.Method |
getMethod()
|
java.lang.Object[] |
getOriginalArguments()
|
Channel |
getOriginalChannel()
|
java.lang.reflect.Method |
getOriginalMethod()
The method associated with this message when it was created. |
int |
hashCode()
|
void |
setArguments(java.lang.Object[] args)
Sets the arguments associated with this message. |
void |
setChannel(Channel ch)
Sets the channel this message was for. |
void |
setMethod(java.lang.reflect.Method theMethod)
Sets the method associated with this message. |
void |
setOriginalChannel(Channel ch)
Sets the original channel this message was on. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected GenericMessage()
public GenericMessage(java.lang.reflect.Method theMethod, java.lang.Object[] theArguments)
theMethod
- The method associated with this message.theArguments
- The arguments associated with this method.public GenericMessage(GenericMessage other)
other
- The message to copy.Method Detail |
---|
public java.lang.Object[] getArguments()
public void setArguments(java.lang.Object[] args)
GenericMessageTransformer
.
args
- The arguments.public java.lang.Object[] getOriginalArguments()
public java.lang.reflect.Method getMethod()
public void setMethod(java.lang.reflect.Method theMethod)
GenericMessageTransformer
.
theMethod
- The method.public java.lang.reflect.Method getOriginalMethod()
public void setChannel(Channel ch)
ch
- The channelpublic Channel getChannel()
public void setOriginalChannel(Channel ch)
channel
of this message if appropriate
but should always preserve the original channel.
ch
- The channel.public Channel getOriginalChannel()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |