org.springframework.jms.connection
Class ChainedExceptionListener
java.lang.Object
org.springframework.jms.connection.ChainedExceptionListener
- Direct Known Subclasses:
- SingleConnectionFactory.InternalChainedExceptionListener
public class ChainedExceptionListener
- extends java.lang.Object
Implementation of the JMS ExceptionListener interface that supports chaining,
allowing the addition of multiple ExceptionListener instances in order.
- Since:
- 2.0
- Author:
- Juergen Hoeller
Field Summary |
private java.util.List<ExceptionListener> |
delegates
List of ExceptionListeners |
Method Summary |
void |
addDelegate(ExceptionListener listener)
Add an ExceptionListener to the chained delegate list. |
ExceptionListener[] |
getDelegates()
Return all registered ExceptionListener delegates (as array). |
void |
onException(JMSException ex)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
delegates
private final java.util.List<ExceptionListener> delegates
- List of ExceptionListeners
ChainedExceptionListener
public ChainedExceptionListener()
addDelegate
public final void addDelegate(ExceptionListener listener)
- Add an ExceptionListener to the chained delegate list.
getDelegates
public final ExceptionListener[] getDelegates()
- Return all registered ExceptionListener delegates (as array).
onException
public void onException(JMSException ex)