Package com.attivio.service
Class ExceptionUnwrappingServiceProxy
- java.lang.Object
-
- com.attivio.service.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 Summary
Constructors Constructor Description ExceptionUnwrappingServiceProxy(java.lang.Object target)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
getImplementationClass()
java.lang.Object
invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
static java.lang.Throwable
unwrapException(java.lang.Throwable t)
-
-
-
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 interfacejava.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 interfaceServiceProxy
- Returns:
- the Class> that is actually proxied
-
-