JsfExceptionHandlerFactory.java
// license-header java merge-point
// Generated by andromda-jsf cartridge (exception\JsfExceptionHandlerFactory.java.vsl) DO NOT EDIT!
package org.andromda.samples.onlinestore;
import javax.faces.context.ExceptionHandler;
import javax.faces.context.ExceptionHandlerFactory;
public class JsfExceptionHandlerFactory extends ExceptionHandlerFactory
{
/**
* Parent ExceptionHandlerFactory
*/
private ExceptionHandlerFactory parent;
/**
* Constructor
*
* @param parent the parent ExceptionHandlerFactory
*/
public JsfExceptionHandlerFactory(ExceptionHandlerFactory parent)
{
this.parent = parent;
}
/**
* Creates a new JsfExceptionHandler based on the parent's ExceptionHandler
*
* @return a new JsfExceptionHandler based on the parent's ExceptionHandler
*/
public ExceptionHandler getExceptionHandler()
{
return new JsfExceptionHandler(parent.getExceptionHandler());
}
}