public class Collaborator extends Object implements org.apache.aries.proxy.InvocationListener, Serializable
Constructor and Description |
---|
Collaborator(org.osgi.service.blueprint.reflect.ComponentMetadata cm,
List<org.apache.aries.blueprint.Interceptor> interceptors) |
Modifier and Type | Method and Description |
---|---|
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
|
public Collaborator(org.osgi.service.blueprint.reflect.ComponentMetadata cm, List<org.apache.aries.blueprint.Interceptor> interceptors)
public Object preInvoke(Object o, Method m, Object[] parameters) throws Throwable
preInvoke
in interface org.apache.aries.proxy.InvocationListener
o
- : The Object being invokedm
- : methodparameters
- : method paramtersThrowable
public void postInvoke(Object token, Object o, Method method, Object returnType) throws Throwable
postInvoke
in interface org.apache.aries.proxy.InvocationListener
Throwable
public void postInvokeExceptionalReturn(Object token, Object o, Method method, Throwable exception) throws Throwable
postInvokeExceptionalReturn
in interface org.apache.aries.proxy.InvocationListener
Throwable
Copyright © 2016. All rights reserved.