org.apache.geronimo.messaging.interceptors
Class ThrowableTrapOutInterceptor

java.lang.Object
  extended byorg.apache.geronimo.messaging.interceptors.ThrowableTrapOutInterceptor
All Implemented Interfaces:
MsgOutInterceptor

public class ThrowableTrapOutInterceptor
extends Object
implements MsgOutInterceptor

Throwables trap.
It pushes the received Msgs to its delegate. If its delegate throws a Throwable, it traps it and notifies the associated ThrowableTrapHandler.

Version:
$Revision: 1.1 $ $Date: 2004/05/11 12:06:40 $

Nested Class Summary
static interface ThrowableTrapOutInterceptor.ThrowableTrapHandler
          When a Msg is not successfully (a Throwable is thrown) pushed to the filtered Msg output, ThrowableTrapOutInterceptor notifies this instance.
 
Constructor Summary
ThrowableTrapOutInterceptor(MsgOutInterceptor anOut, ThrowableTrapOutInterceptor.ThrowableTrapHandler anHandler)
          Creates an exception trap.
 
Method Summary
 void push(Msg aMsg)
          Pushes a Msg.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThrowableTrapOutInterceptor

public ThrowableTrapOutInterceptor(MsgOutInterceptor anOut,
                                   ThrowableTrapOutInterceptor.ThrowableTrapHandler anHandler)
Creates an exception trap.

Parameters:
anOut - Output to be filtered..
anHandler - Exception handler to be notified if received Msgs are not successfully pushed to anOut.
Method Detail

push

public void push(Msg aMsg)
Description copied from interface: MsgOutInterceptor
Pushes a Msg.

Specified by:
push in interface MsgOutInterceptor
Parameters:
aMsg - Msg to be pushed.


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.