org.mule.module.cxf
Class MuleInvoker
java.lang.Object
org.mule.module.cxf.MuleInvoker
- All Implemented Interfaces:
- org.apache.cxf.service.invoker.Invoker
public class MuleInvoker
- extends java.lang.Object
- implements org.apache.cxf.service.invoker.Invoker
Invokes a Mule Service via a CXF binding.
Method Summary |
protected java.lang.Object |
extractPayload(org.apache.cxf.message.Message cxfMessage)
|
static java.lang.reflect.Method |
getMostSpecificMethod(java.lang.reflect.Method method,
java.lang.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. |
java.lang.Object |
invoke(org.apache.cxf.message.Exchange exchange,
java.lang.Object o)
|
static boolean |
isJdkDynamicProxy(java.lang.Object object)
Return whether the given object is a J2SE dynamic proxy. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MuleInvoker
public MuleInvoker(CxfInboundMessageProcessor cxfMmessageProcessor,
java.lang.Class<?> targetClass)
invoke
public java.lang.Object invoke(org.apache.cxf.message.Exchange exchange,
java.lang.Object o)
- Specified by:
invoke
in interface org.apache.cxf.service.invoker.Invoker
extractPayload
protected java.lang.Object extractPayload(org.apache.cxf.message.Message cxfMessage)
isJdkDynamicProxy
public static boolean isJdkDynamicProxy(java.lang.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>)
getMostSpecificMethod
public static java.lang.reflect.Method getMostSpecificMethod(java.lang.reflect.Method method,
java.lang.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 interfacetargetClass
- target class for the curren invocation. May be
null
or 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
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.