Package org.apache.geronimo.interceptor

Examples of org.apache.geronimo.interceptor.SimpleInvocationResult


        try {
            SerializableInvocation proxyInvocation = (SerializableInvocation) invocation;
            Method m = proxyInvocation.getMethod();
            Object args[] = proxyInvocation.getArgs();
            Object rc = m.invoke(target, args);
            return new SimpleInvocationResult(true, rc);

        } catch (InvocationTargetException e) {
            Throwable t = e.getCause();
            if (t instanceof Exception && t instanceof RuntimeException == false) {
                return new SimpleInvocationResult(false, (Exception)t);
            } else {
                throw t;
            }
        }
    }
View Full Code Here


        try {
            SerializableInvocation proxyInvocation = (SerializableInvocation) invocation;
            Method m = proxyInvocation.getMethod();
            Object args[] = proxyInvocation.getArgs();
            Object rc = m.invoke(target, args);
            return new SimpleInvocationResult(true, rc);

        } catch (InvocationTargetException e) {
            Throwable t = e.getCause();
            if (t instanceof Exception && t instanceof RuntimeException == false) {
                return new SimpleInvocationResult(false, (Exception)t);
            } else {
                throw t;
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.interceptor.SimpleInvocationResult

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.