Package org.apache.cxf.service.invoker
Class AbstractInvoker
- java.lang.Object
- 
- org.apache.cxf.service.invoker.AbstractInvoker
 
- 
- All Implemented Interfaces:
- Invoker
 - Direct Known Subclasses:
- BeanInvoker,- FactoryInvoker
 
 public abstract class AbstractInvoker extends Object implements Invoker Abstract implementation of Invoker.
- 
- 
Constructor SummaryConstructors Constructor Description AbstractInvoker()
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected MethodadjustMethodAndParams(Method m, Exchange ex, List<Object> params, Class<?> serviceObjectClass)protected voidcheckSuspendedInvocation(Exchange exchange, Object serviceObject, Method m, List<Object> params, Throwable t)protected FaultcreateFault(Throwable ex, Method m, List<Object> params, boolean checked)static MethodgetMostSpecificMethod(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 ObjectgetServiceObject(Exchange context)Creates and returns a service object depending on the scope.Object[]insertExchange(Method method, Object[] params, Exchange context)Objectinvoke(Exchange exchange, Object o)protected Objectinvoke(Exchange exchange, Object serviceObject, Method m, List<Object> params)static booleanisJdkDynamicProxy(Object object)Return whether the given object is a J2SE dynamic proxy.protected ObjectperformInvocation(Exchange exchange, Object serviceObject, Method m, Object[] paramArray)voidreleaseServiceObject(Exchange context, Object obj)Called when the invoker is done with the object.
 
- 
- 
- 
Method Detail- 
adjustMethodAndParamsprotected Method adjustMethodAndParams(Method m, Exchange ex, List<Object> params, Class<?> serviceObjectClass) 
 - 
invokeprotected Object invoke(Exchange exchange, Object serviceObject, Method m, List<Object> params) 
 - 
checkSuspendedInvocationprotected void checkSuspendedInvocation(Exchange exchange, Object serviceObject, Method m, List<Object> params, Throwable t) 
 - 
createFaultprotected Fault createFault(Throwable ex, Method m, List<Object> params, boolean checked) 
 - 
performInvocationprotected Object performInvocation(Exchange exchange, Object serviceObject, Method m, Object[] paramArray) throws Exception - Throws:
- Exception
 
 - 
getServiceObjectpublic abstract Object getServiceObject(Exchange context) Creates and returns a service object depending on the scope.
 - 
releaseServiceObjectpublic void releaseServiceObject(Exchange context, Object obj) Called when the invoker is done with the object. Default implementation does nothing.- Parameters:
- context-
- obj-
 
 - 
isJdkDynamicProxypublic static boolean isJdkDynamicProxy(Object object) Return whether the given object is a J2SE dynamic proxy.- Parameters:
- object- the object to check
- See Also:
- Proxy.isProxyClass(java.lang.Class<?>)
 
 - 
getMostSpecificMethodpublic 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. E.g. the method may be IFoo.bar() and the target class may be DefaultFoo. In this case, the method may be DefaultFoo.bar(). This enables attributes on that method to be found.- Parameters:
- method- method to be invoked, which may come from an interface
- targetClass- target class for the current invocation. May be- nullor may not even implement the method.
- Returns:
- the more specific method, or the original method if the targetClass doesn't specialize it or implement it or is null
 
 
- 
 
-