Class MethodEvent
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.events.MethodEvent
-
public class MethodEvent extends java.lang.Object
Captures the arguments and return value of a method call. Also contains theProjectEvent
class that should be created from this call.
-
-
Constructor Summary
Constructors Constructor Description MethodEvent(java.lang.Class<? extends ProjectEvent> eventClass, java.lang.Object returnValue, java.lang.Object[] args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object[]
getArgs()
Get the arguments from the method calljava.lang.Class<? extends ProjectEvent>
getEventClass()
Get the class of event to be createdjava.lang.Object
getReturnValue()
Get the return value for the method calljava.lang.String
toString()
-
-
-
Constructor Detail
-
MethodEvent
public MethodEvent(java.lang.Class<? extends ProjectEvent> eventClass, java.lang.Object returnValue, java.lang.Object[] args)
-
-
Method Detail
-
getArgs
public java.lang.Object[] getArgs()
Get the arguments from the method call- Returns:
- the args passed to the method that was called.
-
getReturnValue
public java.lang.Object getReturnValue()
Get the return value for the method call- Returns:
- the value returned by the method call
-
getEventClass
public java.lang.Class<? extends ProjectEvent> getEventClass()
Get the class of event to be created- Returns:
- the type of object that the method was called on.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-