Class ExceptionHandlerFactory
- All Implemented Interfaces:
FacesWrapper<ExceptionHandlerFactory>
- Direct Known Subclasses:
PreJsf2ExceptionHandlerFactory
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 JavaServer Faces. This instance can be
acquired, in a portable manner, by calling:
ExceptionHandlerFactory factory = (ExceptionHandlerFactory)
FactoryFinder.getFactory(FactoryFinder.EXCEPTION_HANDLER_FACTORY);
- Since:
- 2.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract ExceptionHandler
Create and return a A newExceptionHandler
instance.If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped.
-
Constructor Details
-
ExceptionHandlerFactory
public ExceptionHandlerFactory()
-
-
Method Details
-
getWrapped
If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. A default implementation is provided that returns
null
.- Specified by:
getWrapped
in interfaceFacesWrapper<ExceptionHandlerFactory>
-
getExceptionHandler
Create and return a A new
ExceptionHandler
instance. The implementation must return anExceptionHandler
instance suitable for the environment. For example, in some cases it may be desirable for anExceptionHandler
to write error information to the response instead of throwing exceptions as in the case of Ajax applications.
-