Java 类javax.faces.context.ExceptionHandler 实例源码

项目:deltaspike    文件:DeltaSpikeFacesContextWrapper.java   
@Override
public ExceptionHandler getExceptionHandler()
{
    lazyInit();

    ExceptionHandler exceptionHandler = this.wrappedFacesContext.getExceptionHandler();

    if (this.bridgeExceptionHandlerActivated)
    {
        exceptionHandler = new BridgeExceptionHandlerWrapper(
            exceptionHandler, this.beanManager, this.bridgeExceptionQualifier);
    }

    if (this.defaultErrorViewExceptionHandlerActivated)
    {
        exceptionHandler = new DefaultErrorViewAwareExceptionHandlerWrapper(exceptionHandler);
    }

    return exceptionHandler;
}
项目:MetFragRelaunched    文件:ViewExpiredExceptionExceptionHandlerFactory.java   
@Override
public ExceptionHandler getExceptionHandler() {
    ExceptionHandler result = parent.getExceptionHandler();
    result = new ViewExpiredExceptionExceptionHandler(result);

    return result;
}
项目:genopro-tools    文件:ViewExpiredExceptionExceptionHandlerFactory.java   
@Override
public ExceptionHandler getExceptionHandler() {

    ExceptionHandler result = parent.getExceptionHandler();
    result = new ViewExpiredExceptionExceptionHandler(result);

    return result;
}
项目:vocloud    文件:ViewExpiredExceptionExceptionHandlerFactory.java   
@Override
public ExceptionHandler getExceptionHandler() {
    //wrap the exception handler in new one
    ExceptionHandler result = parent.getExceptionHandler();
    result = new ViewExpiredExceptionHandler(result);

    return result;

}
项目:osgi.ee    文件:JtaExceptionHandlerFactory.java   
@Override
public synchronized ExceptionHandler getExceptionHandler() {
    if (tracker == null) {
        ServletContext context = (ServletContext) FacesContext.getCurrentInstance().getExternalContext().getContext();
        BundleContext ctx = (BundleContext) context.getAttribute("osgi-bundlecontext");
        if (ctx == null) {
            ctx = FrameworkUtil.getBundle(getClass()).getBundleContext();
        }
        tracker = new ServiceTracker<>(ctx, TransactionManager.class, null);
        tracker.open();
    }
    return new JtaExceptionHandler(parent.getExceptionHandler(), tracker);
}
项目:karaku    文件:KarakuJSFExceptionHandlerFactory.java   
@Override
public ExceptionHandler getExceptionHandler() {

    ExceptionHandler result = new KarakuJSFExceptionHandler(
            parent.getExceptionHandler());
    return result;
}
项目:PrimefacesShowcase    文件:ShowcaseExceptionHandlerFactory.java   
@Override
public ExceptionHandler getExceptionHandler() {
    if(cached == null) {
        cached = new ShowcaseExceptionHandler(base.getExceptionHandler());
    }

    return cached;
}
项目:deltaspike    文件:MockedJsf2TestContainer.java   
protected void initFacesContext()
{
    FacesContextFactory facesContextFactory =
            (FacesContextFactory) FactoryFinder.getFactory(FactoryFinder.FACES_CONTEXT_FACTORY);
    this.facesContext = facesContextFactory.getFacesContext(
            this.servletContext, this.request, this.response, this.lifecycle);

    ((MockFacesContext) this.facesContext).setApplication(this.application);
    ExceptionHandler exceptionHandler = ((ExceptionHandlerFactory)
            FactoryFinder.getFactory(FactoryFinder.EXCEPTION_HANDLER_FACTORY)).getExceptionHandler();
    this.facesContext.setExceptionHandler(exceptionHandler);

    ((MockFacesContext) this.facesContext).setExternalContext(
            new MockExternalContext(this.servletContext, this.request, this.response));
}
项目:deltaspike    文件:BridgeExceptionHandlerWrapper.java   
public BridgeExceptionHandlerWrapper(ExceptionHandler wrapped,
                                     BeanManager beanManager,
                                     Annotation exceptionQualifier)
{
    this.wrapped = wrapped;
    this.beanManager = beanManager;
    this.exceptionQualifier = exceptionQualifier;
}
项目:javaee8-jsf-sample    文件:DefaultExceptionHandlerFactory.java   
@Override
public ExceptionHandler getExceptionHandler() {
    ExceptionHandler parentHandler = getWrapped().getExceptionHandler();
    return new DefaultExceptionHandler(parentHandler);
}
项目:javaee8-jsf-sample    文件:DefaultExceptionHandler.java   
public DefaultExceptionHandler(ExceptionHandler wrapped) {
    super(wrapped);
}
项目:admin-template    文件:CustomExceptionHandler.java   
public CustomExceptionHandler(ExceptionHandler exceptionHandler) {
    this.wrapped = exceptionHandler;
}
项目:admin-template    文件:CustomExceptionHandler.java   
@Override
public ExceptionHandler getWrapped() {
    return wrapped;
}
项目:admin-template    文件:CustomExceptionHandlerFactory.java   
@Override
public ExceptionHandler getExceptionHandler() {
    return new CustomExceptionHandler(this.parent.getExceptionHandler());
}
项目:webpedidos    文件:JsfExceptionHandlerWrapper.java   
public JsfExceptionHandlerWrapper(ExceptionHandler exceptionHandler) {
    this.wrappedExceptionHandler = exceptionHandler;
}
项目:webpedidos    文件:JsfExceptionHandlerWrapper.java   
@Override
public ExceptionHandler getWrapped() {
    return wrappedExceptionHandler;
}
项目:webpedidos    文件:JsfExceptionHandlerFactory.java   
@Override
public ExceptionHandler getExceptionHandler() {
    return new JsfExceptionHandlerWrapper( parentFactory.getExceptionHandler() );
}
项目:ee8-sandbox    文件:DefaultExceptionHandlerFactory.java   
@Override
public ExceptionHandler getExceptionHandler() {
    return new DefaultExceptionHandler(this.getWrapped().getExceptionHandler());
}
项目:ee8-sandbox    文件:DefaultExceptionHandler.java   
public DefaultExceptionHandler(ExceptionHandler wrapped) {
    super(wrapped);
}
项目:ee8-sandbox    文件:DefaultExceptionHandlerFactory.java   
@Override
public ExceptionHandler getExceptionHandler() {
    return new DefaultExceptionHandler(this.getWrapped().getExceptionHandler());
}
项目:ee8-sandbox    文件:DefaultExceptionHandler.java   
public DefaultExceptionHandler(ExceptionHandler wrapped) {
    super(wrapped);
}
项目:ee8-sandbox    文件:DefaultExceptionHandlerFactory.java   
@Override
public ExceptionHandler getExceptionHandler() {
    return new DefaultExceptionHandler(this.getWrapped().getExceptionHandler());
}
项目:ee8-sandbox    文件:DefaultExceptionHandler.java   
public DefaultExceptionHandler(ExceptionHandler wrapped) {
    super(wrapped);
}
项目:ee8-sandbox    文件:DefaultExceptionHandlerFactory.java   
@Override
public ExceptionHandler getExceptionHandler() {
    return new DefaultExceptionHandler(this.getWrapped().getExceptionHandler());
}
项目:ee8-sandbox    文件:DefaultExceptionHandler.java   
public DefaultExceptionHandler(ExceptionHandler wrapped) {
    super(wrapped);
}
项目:ee8-sandbox    文件:DefaultExceptionHandlerFactory.java   
@Override
public ExceptionHandler getExceptionHandler() {
    return new DefaultExceptionHandler(this.getWrapped().getExceptionHandler());
}
项目:ee8-sandbox    文件:DefaultExceptionHandler.java   
public DefaultExceptionHandler(ExceptionHandler wrapped) {
    super(wrapped);
}
项目:ee8-sandbox    文件:DefaultExceptionHandlerFactory.java   
@Override
public ExceptionHandler getExceptionHandler() {
    return new DefaultExceptionHandler(this.getWrapped().getExceptionHandler());
}
项目:ee8-sandbox    文件:DefaultExceptionHandler.java   
public DefaultExceptionHandler(ExceptionHandler wrapped) {
    super(wrapped);
}
项目:ee8-sandbox    文件:DefaultExceptionHandlerFactory.java   
@Override
public ExceptionHandler getExceptionHandler() {
    return new DefaultExceptionHandler(this.getWrapped().getExceptionHandler());
}
项目:ee8-sandbox    文件:DefaultExceptionHandler.java   
public DefaultExceptionHandler(ExceptionHandler wrapped) {
    super(wrapped);
}
项目:ee8-sandbox    文件:DefaultExceptionHandlerFactory.java   
@Override
public ExceptionHandler getExceptionHandler() {
    return new DefaultExceptionHandler(this.getWrapped().getExceptionHandler());
}
项目:ee8-sandbox    文件:DefaultExceptionHandler.java   
public DefaultExceptionHandler(ExceptionHandler wrapped) {
    super(wrapped);
}
项目:ee8-sandbox    文件:DefaultExceptionHandlerFactory.java   
@Override
public ExceptionHandler getExceptionHandler() {
    return new DefaultExceptionHandler(this.getWrapped().getExceptionHandler());
}
项目:ee8-sandbox    文件:DefaultExceptionHandler.java   
public DefaultExceptionHandler(ExceptionHandler wrapped) {
    super(wrapped);
}
项目:ee8-sandbox    文件:DefaultExceptionHandlerFactory.java   
@Override
public ExceptionHandler getExceptionHandler() {
    return new DefaultExceptionHandler(this.getWrapped().getExceptionHandler());
}
项目:ee8-sandbox    文件:DefaultExceptionHandler.java   
public DefaultExceptionHandler(ExceptionHandler wrapped) {
    super(wrapped);
}
项目:ee8-sandbox    文件:DefaultExceptionHandlerFactory.java   
@Override
public ExceptionHandler getExceptionHandler() {
    return new DefaultExceptionHandler(this.getWrapped().getExceptionHandler());
}
项目:ee8-sandbox    文件:DefaultExceptionHandler.java   
public DefaultExceptionHandler(ExceptionHandler wrapped) {
    super(wrapped);
}
项目:rpb    文件:RpbExceptionHandlerFactory.java   
/**
 * Returns a new instance of {@link RpbExceptionHandlerFactory} which wraps the original exception handler.
 */
@Override
public ExceptionHandler getExceptionHandler() {
    return new RpbExceptionHandler(wrapped.getExceptionHandler());
}