Package org.apache.geronimo.gbean.jmx

Examples of org.apache.geronimo.gbean.jmx.CGLibProxyFactory.create()


        printResults("Raw Invoker", end, start, iterations);

        // cglib proxy
        ProxyFactory cgLibProxyFactory = new CGLibProxyFactory(MyInterface.class);
        ProxyMethodInterceptor cgLibMethodInterceptor = cgLibProxyFactory.getMethodInterceptor();
        MyInterface cgLibProxy = (MyInterface) cgLibProxyFactory.create(cgLibMethodInterceptor);
        cgLibMethodInterceptor.connect(kernel.getMBeanServer(), objectName);
        iterations = 1000000;
        for (int i = 0; i < iterations; i++) {
            cgLibProxy.doNothing();
        }
View Full Code Here


        printResults("ReflectionProxy", end, start, iterations);

        // cglib proxy
        ProxyFactory cgLibProxyFactory = new CGLibProxyFactory(MyInterface.class);
        ProxyMethodInterceptor cgLibMethodInterceptor = cgLibProxyFactory.getMethodInterceptor();
        MyInterface cgLibProxy = (MyInterface) cgLibProxyFactory.create(cgLibMethodInterceptor);
        cgLibMethodInterceptor.connect(kernel.getMBeanServer(), objectName);
        iterations = 1000000;
        for (int i = 0; i < iterations; i++) {
            result = cgLibProxy.echo(msg);
        }
View Full Code Here

        printResults("Raw Invoker", end, start, iterations);

        // cglib proxy
        ProxyFactory cgLibProxyFactory = new CGLibProxyFactory(MyInterface.class);
        ProxyMethodInterceptor cgLibMethodInterceptor = cgLibProxyFactory.getMethodInterceptor();
        MyInterface cgLibProxy = (MyInterface) cgLibProxyFactory.create(cgLibMethodInterceptor);
        cgLibMethodInterceptor.connect(kernel.getMBeanServer(), objectName);
        iterations = 1000000;
        for (int i = 0; i < iterations; i++) {
            cgLibProxy.doNothing();
        }
View Full Code Here

        printResults("ReflectionProxy", end, start, iterations);

        // cglib proxy
        ProxyFactory cgLibProxyFactory = new CGLibProxyFactory(MyInterface.class);
        ProxyMethodInterceptor cgLibMethodInterceptor = cgLibProxyFactory.getMethodInterceptor();
        MyInterface cgLibProxy = (MyInterface) cgLibProxyFactory.create(cgLibMethodInterceptor);
        cgLibMethodInterceptor.connect(kernel.getMBeanServer(), objectName);
        iterations = 1000000;
        for (int i = 0; i < iterations; i++) {
            result = cgLibProxy.echo(msg);
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.