public class MethodResult
extends java.lang.Object
MethodResult
conveys the return value of one of the
activate, modify, and deactivate methods.
Note that the method returning null
or being defined as
void
is not the same thing. If the method returns
null
an instance of this class is returned whose
getResult()
method returns null
. If the method is
defined as void
the special instance VOID
is returned.
Modifier and Type | Field and Description |
---|---|
private boolean |
hasResult |
static MethodResult |
REACTIVATE
Predefined instance indicating to reactivate the component.
|
private java.util.Map<java.lang.String,java.lang.Object> |
result
The actual result from the method, which may be
null . |
static MethodResult |
VOID
Predefined instance indicating a successful call to a void method.
|
Constructor and Description |
---|
MethodResult(boolean hasResult,
java.util.Map<java.lang.String,java.lang.Object> result) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getResult() |
boolean |
hasResult() |
public static final MethodResult VOID
public static final MethodResult REACTIVATE
private final java.util.Map<java.lang.String,java.lang.Object> result
null
.private final boolean hasResult