Class ExceptionHandlerFactory
- java.lang.Object
-
- javax.faces.context.ExceptionHandlerFactory
-
- All Implemented Interfaces:
FacesWrapper<ExceptionHandlerFactory>
- Direct Known Subclasses:
PreJsf2ExceptionHandlerFactory
public abstract class ExceptionHandlerFactory extends java.lang.Object implements FacesWrapper<ExceptionHandlerFactory>
ExceptionHandlerFactory is a factory object that creates (if needed) and returns a new
ExceptionHandlerinstance.There must be one
ExceptionHandlerFactoryinstance 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
Constructors Constructor Description ExceptionHandlerFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ExceptionHandlergetExceptionHandler()Create and return a A newExceptionHandlerinstance.ExceptionHandlerFactorygetWrapped()If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped.
-
-
-
Method Detail
-
getWrapped
public ExceptionHandlerFactory 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:
getWrappedin interfaceFacesWrapper<ExceptionHandlerFactory>
-
getExceptionHandler
public abstract ExceptionHandler getExceptionHandler()
Create and return a A new
ExceptionHandlerinstance. The implementation must return anExceptionHandlerinstance suitable for the environment. For example, in some cases it may be desirable for anExceptionHandlerto write error information to the response instead of throwing exceptions as in the case of Ajax applications.
-
-