private FacesContextFactory getFacesContextFactory() throws BridgeException { try { if (mFacesContextFactory == null) { mFacesContextFactory = (FacesContextFactory) FactoryFinder.getFactory(FactoryFinder.FACES_CONTEXT_FACTORY); } return mFacesContextFactory; } catch (FacesException e) { throw new BridgeException(e); } }
throw new BridgeException("Bridge Factory class " + implName + " not found"); } catch (NoSuchMethodException e) { throw new BridgeException("Bridge Factory " + implName + " has neither BridgeFactory() nor BridgeFactory(BridgeFactory) constructor"); } catch (IllegalArgumentException e) { throw new BridgeException("Illegal argument for Bridge Factory " + implName + " constructor", e); } catch (InstantiationException e) { throw new BridgeException("Can't instantiate Bridge Factory class " + implName, e); } catch (IllegalAccessException e) { throw new BridgeException("Illegal access to Bridge Factory constructor", e); } catch (InvocationTargetException e) { Throwable targetException = e.getTargetException(); logger.info("Bridge Factory was not instantiated due to " + targetException.getMessage()); } else { throw new BridgeException("Can't instantiate Bridge Factory class " + implName, targetException);
private Lifecycle getLifecycle() throws BridgeException { try { if (mLifecycle == null) { LifecycleFactory lifecycleFactory = (LifecycleFactory) FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY); String lifecycleId = mPortletConfig.getPortletContext().getInitParameter(FacesServlet.LIFECYCLE_ID_ATTR); if (lifecycleId == null) { lifecycleId = LifecycleFactory.DEFAULT_LIFECYCLE; } mLifecycle = lifecycleFactory.getLifecycle(lifecycleId); } return mLifecycle; } catch (FacesException e) { throw new BridgeException(e); } }
public void execute() throws BridgeException { logger.debug(Logger.SEPARATOR); logger.debug("execute(RenderRequest, RenderResponse) portletName=[{0}] portletMode=[{1}]", portletName, renderRequest.getPortletMode()); Object renderPartAttribute = renderRequest.getAttribute(RenderRequest.RENDER_PART); if ((renderPartAttribute != null) && renderPartAttribute.equals(RenderRequest.RENDER_HEADERS)) { doFacesHeaders(renderRequest, renderResponse); } else { try { execute(null); } catch (BridgeException e) { throw e; } catch (Throwable t) { throw new BridgeException(t); } finally { cleanup(); } logger.debug(Logger.SEPARATOR); } }
public void execute() throws BridgeException { logger.debug(Logger.SEPARATOR); logger.debug("execute(RenderRequest, RenderResponse) portletName=[{0}] portletMode=[{1}]", portletName, renderRequest.getPortletMode()); Object renderPartAttribute = renderRequest.getAttribute(RenderRequest.RENDER_PART); if ((renderPartAttribute != null) && renderPartAttribute.equals(RenderRequest.RENDER_HEADERS)) { doFacesHeaders(renderRequest, renderResponse); } else { try { execute(null); } catch (BridgeException e) { throw e; } catch (Throwable t) { throw new BridgeException(t); } finally { cleanup(); } logger.debug(Logger.SEPARATOR); } }
throw new BridgeException("Bridge already initialized."); if (mFacesMappings == null || mFacesMappings.size() == 0) throw new BridgeException("BridgeImpl.init(): unable to determine Faces servlet web.xml mapping.");
throw new BridgeException(handledException); throw new BridgeException(unhandledException); throw new BridgeException(t);
e = new BridgeException(e); e = new BridgeException(e);
throw new BridgeException(handledException); throw new BridgeException(unhandledException); throw new BridgeException(t);
throw new BridgeException(handledException); throw new BridgeException(unhandledException); throw new BridgeException(t);
throw new BridgeException(handledException); throw new BridgeException(unhandledException); throw new BridgeException(t);
throw new BridgeException(t);
throw new BridgeException(handledException); throw new BridgeException(unhandledException);
throw new BridgeException(handledException); throw new BridgeException(unhandledException);