Refine search
public void registerPhaseListener(PhaseListener phaseListener) throws IllegalStateException { LifecycleFactory lifecycleFactory = (LifecycleFactory) FactoryFinder.getFactory( FactoryFinder.LIFECYCLE_FACTORY); for (Iterator<String> lifecycleIds = lifecycleFactory.getLifecycleIds(); lifecycleIds.hasNext();) { String lifecycleId = lifecycleIds.next(); lifecycleFactory.getLifecycle(lifecycleId).addPhaseListener(phaseListener); } }
/** * Add the lifecycle. * * @param lifecycleId the lifecycle id. * @param lifecycle the lifecycle to add. */ @Override public void addLifecycle(String lifecycleId, Lifecycle lifecycle) { wrapped.addLifecycle(lifecycleId, lifecycle); }
/** * Setup the <code>lifecycle</code> and <code>lifecycleFactory</code> * variables. * * @throws Exception */ protected void setUpLifecycle() throws Exception { lifecycleFactory = (MockLifecycleFactory) FactoryFinder .getFactory(FactoryFinder.LIFECYCLE_FACTORY); lifecycle = (MockLifecycle) lifecycleFactory .getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE); }
/** * Get the lifecycle. * * @param lifecycleId the lifecycle id. * @return the lifecycle. */ @Override public Lifecycle getLifecycle(String lifecycleId) { return wrapped.getLifecycle(lifecycleId); }
for (Iterator<String> t = factory.getLifecycleIds(); t.hasNext();) { String lfId = (String) t.next(); Lifecycle lifecycle = factory.getLifecycle(lfId); if (LOGGER.isLoggable(FINE)) { LOGGER.log(FINE, format("Adding PhaseListener ''{0}'' to lifecycle ''{0}}", phaseListenerClassName, lfId));
/** * {@inheritDoc} */ public Iterator<String> getLifecycleIds() { return wrapped.getLifecycleIds(); }
private Lifecycle createFacesLifecycle() { LifecycleFactory lifecycleFactory = (LifecycleFactory) FactoryFinder .getFactory(FactoryFinder.LIFECYCLE_FACTORY); return lifecycleFactory.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE); }
public Lifecycle getLifecycle(final String lifecycleId) { if (LifecycleFactory.DEFAULT_LIFECYCLE.equals(lifecycleId)) { Deprecation.LOG.warn("getLifecycle(\"" + lifecycleId + "\") -> TobagoLifecycle"); return defaultLifecycle; } else { Deprecation.LOG.warn("getLifecycle(\"" + lifecycleId + "\") -> other Lifecycle"); return factory.getLifecycle(lifecycleId); } }
for (Iterator<String> t = factory.getLifecycleIds(); t.hasNext();) { String lfId = (String) t.next(); Lifecycle lifecycle = factory.getLifecycle(lfId); if (LOGGER.isLoggable(FINE)) { LOGGER.log(FINE, format("Adding PhaseListener ''{0}'' to lifecycle ''{0}}", phaseListenerClassName, lfId));
/** * Get the lifecycle ids. * * @return the lifecycle ids. */ @Override public Iterator<String> getLifecycleIds() { return wrapped.getLifecycleIds(); } }
@Override public void registerPhaseListener(PhaseListener phaseListener) throws IllegalStateException { LifecycleFactory lifecycleFactory = (LifecycleFactory) FactoryFinder.getFactory( FactoryFinder.LIFECYCLE_FACTORY); for (Iterator<String> lifecycleIds = lifecycleFactory.getLifecycleIds(); lifecycleIds.hasNext();) { String lifecycleId = lifecycleIds.next(); lifecycleFactory.getLifecycle(lifecycleId).addPhaseListener(phaseListener); } }
protected void initLifecycle() throws Exception { lifecycleFactory = (LifecycleFactory) FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY); lifecycle = lifecycleFactory.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE); }
@Override public Lifecycle getLifecycle(String lifecycleId) { Lifecycle lifecycle = interceptedLifeCycles.get(lifecycleId); if (lifecycle == null) { Lifecycle defaultLifeCycle = delegate.getLifecycle(lifecycleId); lifecycle = new InterceptedLifeCycle(defaultLifeCycle); interceptedLifeCycles.put(lifecycleId, lifecycle); } return lifecycle; }
for (Iterator<String> t = factory.getLifecycleIds(); t.hasNext();) { String lfId = (String) t.next(); Lifecycle lifecycle = factory.getLifecycle(lfId); if (LOGGER.isLoggable(FINE)) { LOGGER.log(FINE, format("Adding PhaseListener ''{0}'' to lifecycle ''{0}}", phaseListenerClassName, lfId));
/** * {@inheritDoc} */ public Iterator<String> getLifecycleIds() { return wrapped.getLifecycleIds(); }
/** * {@inheritDoc} */ public void addLifecycle(String s, Lifecycle lifecycle) { wrapped.addLifecycle(s, lifecycle); }
public void registerPhaseListener(PhaseListener phaseListener) throws IllegalStateException { LifecycleFactory lifecycleFactory = (LifecycleFactory) FactoryFinder.getFactory( FactoryFinder.LIFECYCLE_FACTORY); for (Iterator<String> lifecycleIds = lifecycleFactory.getLifecycleIds(); lifecycleIds.hasNext();) { String lifecycleId = lifecycleIds.next(); lifecycleFactory.getLifecycle(lifecycleId).addPhaseListener(phaseListener); } }
/** * Setup the <code>lifecycle</code> and <code>lifecycleFactory</code> * variables. * * @throws Exception */ protected void setUpLifecycle() throws Exception { lifecycleFactory = (LifecycleFactory) FactoryFinder .getFactory(FactoryFinder.LIFECYCLE_FACTORY); lifecycle = lifecycleFactory .getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE); }
private Lifecycle createFacesLifecycle() { LifecycleFactory lifecycleFactory = JsfUtils.findFactory(LifecycleFactory.class); return lifecycleFactory.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE); }
appPhaseListeners.add(plInstance); for (Iterator t = factory.getLifecycleIds(); t.hasNext();) Lifecycle lifecycle = factory.getLifecycle(lfId); if (LOGGER.isLoggable(Level.FINE)) { LOGGER.log(Level.FINE,