Class ExceptionUnwrappingServiceProxy

  • All Implemented Interfaces:
    ServiceProxy, java.lang.reflect.InvocationHandler

    public class ExceptionUnwrappingServiceProxy
    extends java.lang.Object
    implements java.lang.reflect.InvocationHandler, ServiceProxy
    Simple proxy that handles InvocationTargetException and throws the real cause
    • Constructor Detail

      • ExceptionUnwrappingServiceProxy

        public ExceptionUnwrappingServiceProxy​(java.lang.Object target)
    • Method Detail

      • invoke

        public java.lang.Object invoke​(java.lang.Object proxy,
                                       java.lang.reflect.Method method,
                                       java.lang.Object[] args)
                                throws java.lang.Throwable
        Specified by:
        invoke in interface java.lang.reflect.InvocationHandler
        Throws:
        java.lang.Throwable
      • unwrapException

        public static java.lang.Throwable unwrapException​(java.lang.Throwable t)
                                                   throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • getImplementationClass

        public java.lang.Class<?> getImplementationClass()
        Specified by:
        getImplementationClass in interface ServiceProxy
        Returns:
        the Class that is actually proxied