com.waveset.adapter
Class JmsListenerResourceAdapter.SafetyInvocationHandler
java.lang.Object
com.waveset.adapter.JmsListenerResourceAdapter.SafetyInvocationHandler
- All Implemented Interfaces:
- java.lang.reflect.InvocationHandler
- Enclosing class:
- JmsListenerResourceAdapter
- public static class JmsListenerResourceAdapter.SafetyInvocationHandler
- extends java.lang.Object
- implements java.lang.reflect.InvocationHandler
An invocation handler for a dynamic proxy which
ignores all unhandled errors in the invokes. This of course should
only be used with caution, since usually your application
cares when there is an error.
Method Summary |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method m,
java.lang.Object[] args)
|
static java.lang.Object |
newInstance(java.lang.Object obj,
java.lang.Class clazz)
Return a SafetyInvocationHandler proxy for the object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
newInstance
public static java.lang.Object newInstance(java.lang.Object obj,
java.lang.Class clazz)
- Return a SafetyInvocationHandler proxy for the object
- Parameters:
obj
- the real Object the proxy eventually should invokeclazz
- the interface to be exposed by the proxy
- Returns:
- the newly created proxy which can be safely cast to class
clazz
invoke
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method m,
java.lang.Object[] args)
throws java.lang.Throwable
- Specified by:
invoke
in interface java.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable