Class ExceptionHandlerFactory

java.lang.Object
jakarta.faces.context.ExceptionHandlerFactory
All Implemented Interfaces:
FacesWrapper<ExceptionHandlerFactory>
Direct Known Subclasses:
ExceptionHandlerFactoryImpl

public abstract class ExceptionHandlerFactory extends Object implements FacesWrapper<ExceptionHandlerFactory>

ExceptionHandlerFactory is a factory object that creates (if needed) and returns a new ExceptionHandler instance.

There must be one ExceptionHandlerFactory instance per web application that is utilizing Jakarta Server Faces. This instance can be acquired, in a portable manner, by calling:

 
   ExceptionHandlerFactory factory = (ExceptionHandlerFactory)
    FactoryFinder.getFactory(FactoryFinder.EXCEPTION_HANDLER_FACTORY);
 
 

Usage: extend this class and push the implementation being wrapped to the constructor and use getWrapped() to access the instance being wrapped.

Since:
2.0