org.jboss.seam.exception.control
Class ExceptionHandlerDispatch

java.lang.Object
  extended by org.jboss.seam.exception.control.ExceptionHandlerDispatch

public class ExceptionHandlerDispatch
extends Object

Observer of ExceptionToCatchEvent events and handler dispatcher. All handlers are invoked from this class. This class is immutable.


Constructor Summary
ExceptionHandlerDispatch()
           
 
Method Summary
 void executeHandlers(ExceptionToCatchEvent eventException, javax.enterprise.inject.spi.BeanManager bm, CatchExtension extension)
          Observes the event, finds the correct exception handler(s) and invokes them.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionHandlerDispatch

public ExceptionHandlerDispatch()
Method Detail

executeHandlers

public void executeHandlers(@Observes
                            ExceptionToCatchEvent eventException,
                            javax.enterprise.inject.spi.BeanManager bm,
                            CatchExtension extension)
                     throws Throwable
Observes the event, finds the correct exception handler(s) and invokes them.

Parameters:
eventException - exception to be invoked
bm - active bean manager
extension - catch extension instance to obtain handlers
Throws:
Throwable - If a handler requests the exception to be re-thrown.


Copyright © 2010 Seam Framework. All Rights Reserved.