public abstract class AbstractInvoker extends Object implements Invoker
Constructor and Description |
---|
AbstractInvoker() |
Modifier and Type | Method and Description |
---|---|
protected Method |
adjustMethodAndParams(Method m,
Exchange ex,
List<Object> params,
Class<?> serviceObjectClass) |
protected void |
checkSuspendedInvocation(Exchange exchange,
Object serviceObject,
Method m,
List<Object> params,
Throwable t) |
protected Fault |
createFault(Throwable ex,
Method m,
List<Object> params,
boolean checked) |
static Method |
getMostSpecificMethod(Method method,
Class<?> targetClass)
Given a method, which may come from an interface, and a targetClass used
in the current AOP invocation, find the most specific method if there is
one.
|
abstract Object |
getServiceObject(Exchange context)
Creates and returns a service object depending on the scope.
|
Object[] |
insertExchange(Method method,
Object[] params,
Exchange context) |
Object |
invoke(Exchange exchange,
Object o) |
protected Object |
invoke(Exchange exchange,
Object serviceObject,
Method m,
List<Object> params) |
static boolean |
isJdkDynamicProxy(Object object)
Return whether the given object is a J2SE dynamic proxy.
|
protected Object |
performInvocation(Exchange exchange,
Object serviceObject,
Method m,
Object[] paramArray) |
void |
releaseServiceObject(Exchange context,
Object obj)
Called when the invoker is done with the object.
|
protected Method adjustMethodAndParams(Method m, Exchange ex, List<Object> params, Class<?> serviceObjectClass)
protected Object invoke(Exchange exchange, Object serviceObject, Method m, List<Object> params)
protected void checkSuspendedInvocation(Exchange exchange, Object serviceObject, Method m, List<Object> params, Throwable t)
protected Fault createFault(Throwable ex, Method m, List<Object> params, boolean checked)
protected Object performInvocation(Exchange exchange, Object serviceObject, Method m, Object[] paramArray) throws Exception
Exception
public abstract Object getServiceObject(Exchange context)
public void releaseServiceObject(Exchange context, Object obj)
context
- obj
- public static boolean isJdkDynamicProxy(Object object)
object
- the object to checkProxy.isProxyClass(java.lang.Class<?>)
public static Method getMostSpecificMethod(Method method, Class<?> targetClass)
method
- method to be invoked, which may come from an interfacetargetClass
- target class for the current invocation. May be
null
or may not even implement the method.Apache CXF