|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry5.internal.services.AbstractComponentMethodInvocation
public abstract class AbstractComponentMethodInvocation
| Constructor Summary | |
|---|---|
AbstractComponentMethodInvocation(ComponentMethodInvocationInfo info,
ComponentResources resources)
|
|
| Method Summary | ||
|---|---|---|
ComponentResources |
getComponentResources()
Returns the resources associated with this component class. |
|
String |
getMethodName()
Returns the name of the method being invoked. |
|
int |
getParameterCount()
Returns the number of parameters passed to the method. |
|
Class |
getParameterType(int index)
Returns the type of the parameter at the index. |
|
Object |
getResult()
The return value after Invocation.proceed(), which may be null. |
|
Class |
getResultType()
Returns the type of the method result, which may be a primitive type (i.e., int.class) or even void (void.class). |
|
|
getThrown(Class<T> throwableClass)
After invoking Invocation.proceed(), used to obtain the thrown (checked) exception, if assignable to the provided
type. |
|
protected abstract void |
invokeAdvisedMethod()
Implemented to reinvoke the method on the advised method of the component. |
|
boolean |
isFail()
If true, then the proceeded invocation threw a checked exception. |
|
void |
overrideResult(Object newResult)
Overrides the result. |
|
void |
overrideThrown(Exception thrown)
Overrides the thrown exception. |
|
void |
proceed()
This first call is to the first advice. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.tapestry5.ioc.Invocation |
|---|
getParameter, override |
| Constructor Detail |
|---|
public AbstractComponentMethodInvocation(ComponentMethodInvocationInfo info,
ComponentResources resources)
| Method Detail |
|---|
public ComponentResources getComponentResources()
ComponentResourcesAware
getComponentResources in interface ComponentResourcesAwarepublic String getMethodName()
Invocation
getMethodName in interface Invocationpublic Class getResultType()
Invocation
getResultType in interface Invocationpublic int getParameterCount()
Invocation
getParameterCount in interface Invocationpublic Class getParameterType(int index)
Invocation
getParameterType in interface Invocationpublic void proceed()
proceed in interface Invocationprotected abstract void invokeAdvisedMethod()
public boolean isFail()
Invocation
isFail in interface Invocationpublic <T extends Throwable> T getThrown(Class<T> throwableClass)
InvocationInvocation.proceed(), used to obtain the thrown (checked) exception, if assignable to the provided
type.
getThrown in interface InvocationthrowableClass - the type of exception to match
public void overrideThrown(Exception thrown)
InvocationErrors, those can just be thrown. Sets the fail flag.
overrideThrown in interface Invocationpublic Object getResult()
InvocationInvocation.proceed(), which may be null.
getResult in interface Invocationpublic void overrideResult(Object newResult)
Invocation
overrideResult in interface Invocation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||