IT. Expert System.

Java Enterprise Edition (EE)

ExceptionHandlerFactory


javax.faces.context
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 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
ExceptionHandlerFactory()
           
 
Method Summary
abstract  ExceptionHandler getExceptionHandler()
          

Create and return a A new ExceptionHandler instance.

 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.

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionHandlerFactory

public ExceptionHandlerFactory()
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:
getWrapped in interface FacesWrapper<ExceptionHandlerFactory>

getExceptionHandler

public abstract ExceptionHandler getExceptionHandler()

Create and return a A new ExceptionHandler instance. The implementation must return an ExceptionHandler instance suitable for the environment. For example, in some cases it may be desirable for an ExceptionHandler to write error information to the response instead of throwing exceptions as in the case of Ajax applications.



Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1724 / . Delta: 0.01408 с