Package org.mule.util.proxy

Examples of org.mule.util.proxy.TargetInvocationHandler


        {
            final Class clazz = connection.getClass();
            Method cleanupMethod;
            if (Proxy.isProxyClass(clazz))
            {
                TargetInvocationHandler handler =
                        (TargetInvocationHandler) Proxy.getInvocationHandler(connection);
                // this is really an XA connection
                connection = (Connection) handler.getTargetObject();
                Class realConnectionClass = connection.getClass();
                cleanupMethod = realConnectionClass.getMethod("cleanup", (Class[])null);
            }
            else
            {
View Full Code Here


                {
                    // this is really an XA connection, bypass the java.lang.reflect.Proxy as it
                    // can't delegate to non-interfaced methods (like proprietary 'cleanup' one)
                    // TODO check if CGlib will manage to enhance the AMQ connection class,
                    // there are no final methods, but a number of private ones, though
                    TargetInvocationHandler targetInvocationHandler = (TargetInvocationHandler) invocationHandler;
                    connection = (Connection) targetInvocationHandler.getTargetObject();
                    Class realConnectionClass = connection.getClass();
                    cleanupMethod = realConnectionClass.getMethod("cleanup", (Class[])null);
                }
                else
                {
View Full Code Here

TOP

Related Classes of org.mule.util.proxy.TargetInvocationHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.