|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.aries.blueprint.proxy.Collaborator
public class Collaborator
A collaborator which ensures preInvoke and postInvoke occur before and after method invocation
| Constructor Summary | |
|---|---|
Collaborator(org.osgi.service.blueprint.reflect.ComponentMetadata cm,
List<org.apache.aries.blueprint.Interceptor> interceptors)
|
|
| Method Summary | |
|---|---|
void |
postInvoke(Object token,
Object o,
Method method,
Object returnType)
Called when the method is called and returned normally |
void |
postInvokeExceptionalReturn(Object token,
Object o,
Method method,
Throwable exception)
Called when the method is called and returned with an exception |
Object |
preInvoke(Object o,
Method m,
Object[] parameters)
Invoke the preCall method on the interceptor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Collaborator(org.osgi.service.blueprint.reflect.ComponentMetadata cm,
List<org.apache.aries.blueprint.Interceptor> interceptors)
| Method Detail |
|---|
public Object preInvoke(Object o,
Method m,
Object[] parameters)
throws Throwable
preInvoke in interface org.apache.aries.proxy.InvocationListenero - : The Object being invokedm - : methodparameters - : method paramters
Throwable
public void postInvoke(Object token,
Object o,
Method method,
Object returnType)
throws Throwable
postInvoke in interface org.apache.aries.proxy.InvocationListenercm - : component metadatamethod - : methodreturnType - : return type
Throwable
public void postInvokeExceptionalReturn(Object token,
Object o,
Method method,
Throwable exception)
throws Throwable
postInvokeExceptionalReturn in interface org.apache.aries.proxy.InvocationListenercm - : component metadatamethod - : methodexception - : exception thrown
Throwable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||