@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; }
@Override public ExceptionHandler getExceptionHandler() { ExceptionHandler result = parent.getExceptionHandler(); result = new ViewExpiredExceptionExceptionHandler(result); return result; }
@Override public ExceptionHandler getExceptionHandler() { //wrap the exception handler in new one ExceptionHandler result = parent.getExceptionHandler(); result = new ViewExpiredExceptionHandler(result); return result; }
@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); }
@Override public ExceptionHandler getExceptionHandler() { ExceptionHandler result = new KarakuJSFExceptionHandler( parent.getExceptionHandler()); return result; }
@Override public ExceptionHandler getExceptionHandler() { if(cached == null) { cached = new ShowcaseExceptionHandler(base.getExceptionHandler()); } return cached; }
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)); }
public BridgeExceptionHandlerWrapper(ExceptionHandler wrapped, BeanManager beanManager, Annotation exceptionQualifier) { this.wrapped = wrapped; this.beanManager = beanManager; this.exceptionQualifier = exceptionQualifier; }
@Override public ExceptionHandler getExceptionHandler() { ExceptionHandler parentHandler = getWrapped().getExceptionHandler(); return new DefaultExceptionHandler(parentHandler); }
public DefaultExceptionHandler(ExceptionHandler wrapped) { super(wrapped); }
public CustomExceptionHandler(ExceptionHandler exceptionHandler) { this.wrapped = exceptionHandler; }
@Override public ExceptionHandler getWrapped() { return wrapped; }
@Override public ExceptionHandler getExceptionHandler() { return new CustomExceptionHandler(this.parent.getExceptionHandler()); }
public JsfExceptionHandlerWrapper(ExceptionHandler exceptionHandler) { this.wrappedExceptionHandler = exceptionHandler; }
@Override public ExceptionHandler getWrapped() { return wrappedExceptionHandler; }
@Override public ExceptionHandler getExceptionHandler() { return new JsfExceptionHandlerWrapper( parentFactory.getExceptionHandler() ); }
@Override public ExceptionHandler getExceptionHandler() { return new DefaultExceptionHandler(this.getWrapped().getExceptionHandler()); }
/** * Returns a new instance of {@link RpbExceptionHandlerFactory} which wraps the original exception handler. */ @Override public ExceptionHandler getExceptionHandler() { return new RpbExceptionHandler(wrapped.getExceptionHandler()); }