|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry5.internal.services.MethodInvocationSuccessfulResult
public class MethodInvocationSuccessfulResult
Implementation of MethodInvocationResult for successful
method invocations.
| Constructor Summary | |
|---|---|
MethodInvocationSuccessfulResult(Object returnValue)
|
|
| Method Summary | ||
|---|---|---|
Object |
getReturnValue()
The return value from the method invocation. |
|
|
getThrown(Class<T> throwableClass)
If MethodInvocationResult.isFail() is true, this method provides access to the actual checked exception that was thrown. |
|
boolean |
isFail()
If true, then the method invocation ended with a checked exception being thrown. |
|
void |
rethrow()
If the invocation threw a checked exception, this method will wrap that exception in a RuntimeException and throw that. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MethodInvocationSuccessfulResult(Object returnValue)
| Method Detail |
|---|
public Object getReturnValue()
MethodInvocationResult
getReturnValue in interface MethodInvocationResultpublic <T extends Throwable> T getThrown(Class<T> throwableClass)
MethodInvocationResultMethodInvocationResult.isFail() is true, this method provides access to the actual checked exception that was thrown.
getThrown in interface MethodInvocationResultthrowableClass - the type of exception to match
public boolean isFail()
MethodInvocationResult
isFail in interface MethodInvocationResultpublic void rethrow()
MethodInvocationResultMethodInvocationResult.getReturnValue().
rethrow in interface MethodInvocationResult
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||