All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jexbox.connector.jsf.JexboxExceptionHandlerFactory Maven / Gradle / Ivy

Go to download

Jexbox JSF connector hooks into ExceptionHandlerWrapper, so any uncaught exceptions in your JSF application will be sent to your Jexbox database. The connector extracts complete exception stack trace, including nested exceptions, error message and system properties and page/component traces

There is a newer version: 0.0.2
Show newest version
package com.jexbox.connector.jsf;

import javax.faces.context.ExceptionHandler;
import javax.faces.context.ExceptionHandlerFactory;

import com.jexbox.connector.http.JexboxConnectorHttp;

public abstract class JexboxExceptionHandlerFactory extends ExceptionHandlerFactory {
	private ExceptionHandlerFactory _parent;
	private JexboxConnectorHttp _jexbox = null;
	
	public JexboxExceptionHandlerFactory(ExceptionHandlerFactory parent) {
		_parent = parent;
		_jexbox = createJexboxConnectorHttp();
	}
	
	protected abstract JexboxConnectorHttp createJexboxConnectorHttp();
	 
	@Override
	public ExceptionHandler  getExceptionHandler() {
		ExceptionHandler handler = new JexboxExceptionHandler(_jexbox, _parent.getExceptionHandler());
		return handler;
	}
	 
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy