org.omnifaces.exceptionhandler
Class FullAjaxExceptionHandlerFactory

java.lang.Object
  extended by javax.faces.context.ExceptionHandlerFactory
      extended by org.omnifaces.exceptionhandler.FullAjaxExceptionHandlerFactory
All Implemented Interfaces:
javax.faces.FacesWrapper<javax.faces.context.ExceptionHandlerFactory>

public class FullAjaxExceptionHandlerFactory
extends javax.faces.context.ExceptionHandlerFactory

This exception handler factory needs to be registered as follows in faces-config.xml to get the FullAjaxExceptionHandler to run:

 <factory>
   <exception-handler-factory>
     org.omnifaces.exceptionhandler.FullAjaxExceptionHandlerFactory
   </exception-handler-factory>
 </factory>
 

Author:
Bauke Scholtz
See Also:
FullAjaxExceptionHandler

Constructor Summary
FullAjaxExceptionHandlerFactory(javax.faces.context.ExceptionHandlerFactory wrapped)
          Construct a new full ajax exception handler factory around the given wrapped factory.
 
Method Summary
 javax.faces.context.ExceptionHandler getExceptionHandler()
          Returns a new instance of FullAjaxExceptionHandler which wraps the original exception handler.
 javax.faces.context.ExceptionHandlerFactory getWrapped()
          Returns the wrapped factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FullAjaxExceptionHandlerFactory

public FullAjaxExceptionHandlerFactory(javax.faces.context.ExceptionHandlerFactory wrapped)
Construct a new full ajax exception handler factory around the given wrapped factory.

Parameters:
wrapped - The wrapped factory.
Method Detail

getExceptionHandler

public javax.faces.context.ExceptionHandler getExceptionHandler()
Returns a new instance of FullAjaxExceptionHandler which wraps the original exception handler.

Specified by:
getExceptionHandler in class javax.faces.context.ExceptionHandlerFactory

getWrapped

public javax.faces.context.ExceptionHandlerFactory getWrapped()
Returns the wrapped factory.

Specified by:
getWrapped in interface javax.faces.FacesWrapper<javax.faces.context.ExceptionHandlerFactory>
Overrides:
getWrapped in class javax.faces.context.ExceptionHandlerFactory