|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InvocationResult
The result of an Invocation. There are two types of result:
Note that these should both be considered a normal completion of the operation by the container. Abnormal completions, such as a RuntimeException or Error from the invocation, or any problem in the interceptor chain itself, should result in a Throwable being thrown up the chain rather than being contained in this result.
This distinction mirrors the semantics for EJB invocations, where a business method is considered to have completed successfuly even if it throws declared Exception - the Exception there is indicating a business level issue and not a system problem.
Method Summary | |
---|---|
Exception |
getException()
Get the application exception raised by the invocation. |
Object |
getResult()
Get the return value from the invocation. |
boolean |
isException()
Was an application exception raised by the invocation? |
boolean |
isNormal()
Was this a normal completion (return)? |
Method Detail |
---|
boolean isNormal()
Object getResult()
boolean isException()
Exception getException()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |