本文整理汇总了Java中javax.faces.context.ExceptionHandler类的典型用法代码示例。如果您正苦于以下问题:Java ExceptionHandler类的具体用法?Java ExceptionHandler怎么用?Java ExceptionHandler使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ExceptionHandler类属于javax.faces.context包,在下文中一共展示了ExceptionHandler类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getExceptionHandler
import javax.faces.context.ExceptionHandler; //导入依赖的package包/类
@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;
}
示例2: getExceptionHandler
import javax.faces.context.ExceptionHandler; //导入依赖的package包/类
@Override
public ExceptionHandler getExceptionHandler() {
ExceptionHandler result = parent.getExceptionHandler();
result = new ViewExpiredExceptionExceptionHandler(result);
return result;
}
开发者ID:c-ruttkies,项目名称:MetFragRelaunched,代码行数:8,代码来源:ViewExpiredExceptionExceptionHandlerFactory.java
示例3: getExceptionHandler
import javax.faces.context.ExceptionHandler; //导入依赖的package包/类
@Override
public ExceptionHandler getExceptionHandler() {
ExceptionHandler result = parent.getExceptionHandler();
result = new ViewExpiredExceptionExceptionHandler(result);
return result;
}
示例4: getExceptionHandler
import javax.faces.context.ExceptionHandler; //导入依赖的package包/类
@Override
public ExceptionHandler getExceptionHandler() {
//wrap the exception handler in new one
ExceptionHandler result = parent.getExceptionHandler();
result = new ViewExpiredExceptionHandler(result);
return result;
}
示例5: getExceptionHandler
import javax.faces.context.ExceptionHandler; //导入依赖的package包/类
@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);
}
示例6: getExceptionHandler
import javax.faces.context.ExceptionHandler; //导入依赖的package包/类
@Override
public ExceptionHandler getExceptionHandler() {
ExceptionHandler result = new KarakuJSFExceptionHandler(
parent.getExceptionHandler());
return result;
}
示例7: getExceptionHandler
import javax.faces.context.ExceptionHandler; //导入依赖的package包/类
@Override
public ExceptionHandler getExceptionHandler() {
if(cached == null) {
cached = new ShowcaseExceptionHandler(base.getExceptionHandler());
}
return cached;
}
示例8: initFacesContext
import javax.faces.context.ExceptionHandler; //导入依赖的package包/类
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));
}
示例9: BridgeExceptionHandlerWrapper
import javax.faces.context.ExceptionHandler; //导入依赖的package包/类
public BridgeExceptionHandlerWrapper(ExceptionHandler wrapped,
BeanManager beanManager,
Annotation exceptionQualifier)
{
this.wrapped = wrapped;
this.beanManager = beanManager;
this.exceptionQualifier = exceptionQualifier;
}
示例10: getExceptionHandler
import javax.faces.context.ExceptionHandler; //导入依赖的package包/类
@Override
public ExceptionHandler getExceptionHandler() {
ExceptionHandler parentHandler = getWrapped().getExceptionHandler();
return new DefaultExceptionHandler(parentHandler);
}
示例11: DefaultExceptionHandler
import javax.faces.context.ExceptionHandler; //导入依赖的package包/类
public DefaultExceptionHandler(ExceptionHandler wrapped) {
super(wrapped);
}
示例12: CustomExceptionHandler
import javax.faces.context.ExceptionHandler; //导入依赖的package包/类
public CustomExceptionHandler(ExceptionHandler exceptionHandler) {
this.wrapped = exceptionHandler;
}
示例13: getWrapped
import javax.faces.context.ExceptionHandler; //导入依赖的package包/类
@Override
public ExceptionHandler getWrapped() {
return wrapped;
}
示例14: getExceptionHandler
import javax.faces.context.ExceptionHandler; //导入依赖的package包/类
@Override
public ExceptionHandler getExceptionHandler() {
return new CustomExceptionHandler(this.parent.getExceptionHandler());
}
示例15: JsfExceptionHandlerWrapper
import javax.faces.context.ExceptionHandler; //导入依赖的package包/类
public JsfExceptionHandlerWrapper(ExceptionHandler exceptionHandler) {
this.wrappedExceptionHandler = exceptionHandler;
}