|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.aries.blueprint.container.QuiesceInterceptor
public class QuiesceInterceptor
Constructor Summary | |
---|---|
QuiesceInterceptor(ServiceRecipe serviceRecipe)
|
Method Summary | |
---|---|
int |
getRank()
Return the rank of the interceptor, which is used to determine the order of the interceptors to be invoked Rank is between Integer.MIN_VALUE and Integer.MAX_VALUE, interceptors are called in the order of highest value rank first to lowest value rank last i.e. |
void |
postCallWithException(ComponentMetadata cm,
java.lang.reflect.Method m,
java.lang.Throwable ex,
java.lang.Object preCallToken)
The method is called after the method m is invoked and causes an exception. |
void |
postCallWithReturn(ComponentMetadata cm,
java.lang.reflect.Method m,
java.lang.Object returnType,
java.lang.Object preCallToken)
This method is called after the method m is invoked and returned normally. |
java.lang.Object |
preCall(ComponentMetadata cm,
java.lang.reflect.Method m,
java.lang.Object... parameters)
This is called just before the method m is invocation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QuiesceInterceptor(ServiceRecipe serviceRecipe)
Method Detail |
---|
public java.lang.Object preCall(ComponentMetadata cm, java.lang.reflect.Method m, java.lang.Object... parameters) throws java.lang.Throwable
Interceptor
preCall
in interface Interceptor
cm
- : the component's metada
java.lang.Throwable
public void postCallWithReturn(ComponentMetadata cm, java.lang.reflect.Method m, java.lang.Object returnType, java.lang.Object preCallToken) throws java.lang.Throwable
Interceptor
postCallWithReturn
in interface Interceptor
returnType
- : the return objectpreCallToken
- token returned by preCall
java.lang.Throwable
public void postCallWithException(ComponentMetadata cm, java.lang.reflect.Method m, java.lang.Throwable ex, java.lang.Object preCallToken) throws java.lang.Throwable
Interceptor
postCallWithException
in interface Interceptor
cm
- : the component metadatam
- : the method invokedex
- : the Throwable
thrownpreCallToken
- token returned by preCall
java.lang.Throwable
public int getRank()
Interceptor
getRank
in interface Interceptor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |