public interface ServiceInterceptorContext
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getAttribute(java.lang.String name)
Returns a contextual attribute by name
|
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes()
Returns the contextual attributes
|
java.lang.Throwable |
getError()
Returns the error for the service invocation
|
java.lang.Object[] |
getParameters()
Returns the invocation parameters
|
java.lang.Object |
getResult()
Returns service invocation result
|
boolean |
isSkipInvocation()
Returns whether the original service invocation should be skipped
|
boolean |
isSuccess()
Returns whether no error is present in the current invocation
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Sets a contextual attribute by name
|
void |
setError(java.lang.Throwable error)
Sets the error for the service invocation
|
void |
setParameter(int index,
java.lang.Object value)
Replaces an specific invocation parameter.
|
void |
setParameters(java.lang.Object[] newParams)
Replaces all invocation parameters.
|
void |
setResult(java.lang.Object result)
Sets the service invocation result
|
void |
setSkipInvocation(boolean skipInvocation)
Sets whether the original service invocation should be skipped
|
void |
skipInvocation()
Marks to skip the actual service invocation.
|
void |
skipInvocation(java.lang.Object result)
Equivallent to
skipInvocation() and then setResult(Object) |
java.lang.Object getAttribute(java.lang.String name)
java.util.Map<java.lang.String,java.lang.Object> getAttributes()
java.lang.Throwable getError()
java.lang.Object[] getParameters()
java.lang.Object getResult()
boolean isSkipInvocation()
boolean isSuccess()
void setAttribute(java.lang.String name,
java.lang.Object value)
void setError(java.lang.Throwable error)
void setParameter(int index,
java.lang.Object value)
void setParameters(java.lang.Object[] newParams)
void setResult(java.lang.Object result)
void setSkipInvocation(boolean skipInvocation)
void skipInvocation()
setResult(Object) to set what will be returned by the
methodvoid skipInvocation(java.lang.Object result)
skipInvocation() and then setResult(Object)