/** * {@inheritDoc} */ public void afterPhase(PhaseEvent phaseEvent) { resolveBroadcaster().broadcastAfterEvent(phaseEvent); }
/** * {@inheritDoc} */ public void beforePhase(PhaseEvent phaseEvent) { resolveBroadcaster().broadcastBeforeEvent(phaseEvent); }
/** * Constructor for wrapping the given {@link LifecycleFactory} * @param wrapped lifecycle-factory which should be wrapped */ public CodiLifecycleFactoryWrapper(LifecycleFactory wrapped) { this.wrapped = wrapped; this.deactivated = !isActivated(); }
private Annotation createAnnotationLiteral(javax.faces.event.PhaseId phaseId, boolean isBeforeEvent) { if (isBeforeEvent) { return createBeforeLiteral(phaseId); } return createAfterLiteral(phaseId); }
/** * {@inheritDoc} */ public Lifecycle getLifecycle(String s) { Lifecycle result = this.wrapped.getLifecycle(s); if(this.deactivated) { return result; } return new CodiLifecycleWrapper(result, PhaseListenerExtension.consumePhaseListeners()); }
private void lazyInit() { if (this.initialized == null) { init(); } }
private void broadcastApplicationStartupBroadcaster() { //just an !additional! check to improve the performance if (applicationInitialized == null) { initApplication(); } }
/** * {@inheritDoc} */ public void afterPhase(PhaseEvent phaseEvent) { resolveBroadcaster().broadcastAfterEvent(phaseEvent); }
/** * {@inheritDoc} */ public void beforePhase(PhaseEvent phaseEvent) { resolveBroadcaster().broadcastBeforeEvent(phaseEvent); }
private Annotation createAnnotationLiteral(javax.faces.event.PhaseId phaseId, boolean isBeforeEvent) { if (isBeforeEvent) { return createBeforeLiteral(phaseId); } return createAfterLiteral(phaseId); }
/** * {@inheritDoc} */ public Lifecycle getLifecycle(String s) { Lifecycle result = this.wrapped.getLifecycle(s); if(this.deactivated) { return result; } return new CodiLifecycleWrapper(result, PhaseListenerExtension.consumePhaseListeners()); }
/** * Constructor for wrapping the given {@link LifecycleFactory} * @param wrapped lifecycle-factory which should be wrapped */ public CodiLifecycleFactoryWrapper(LifecycleFactory wrapped) { this.wrapped = wrapped; this.deactivated = !isActivated(); }
private void lazyInit() { if (this.initialized == null) { init(); } }
private void broadcastApplicationStartupBroadcaster() { //just an !additional! check to improve the performance if (applicationInitialized == null) { initApplication(); } }
/** * {@inheritDoc} */ public void afterPhase(PhaseEvent phaseEvent) { resolveBroadcaster().broadcastAfterEvent(phaseEvent); }
/** * {@inheritDoc} */ public void beforePhase(PhaseEvent phaseEvent) { resolveBroadcaster().broadcastBeforeEvent(phaseEvent); }
private Annotation createAnnotationLiteral(javax.faces.event.PhaseId phaseId, boolean isBeforeEvent) { if (isBeforeEvent) { return createBeforeLiteral(phaseId); } return createAfterLiteral(phaseId); }
/** * Constructor for wrapping the given {@link LifecycleFactory} * @param wrapped lifecycle-factory which should be wrapped */ public CodiLifecycleFactoryWrapper(LifecycleFactory wrapped) { this.wrapped = wrapped; this.deactivated = !isActivated(); }
private void lazyInit() { if (this.initialized == null) { init(); } }
private void broadcastApplicationStartupBroadcaster() { //just an !additional! check to improve the performance if (applicationInitialized == null) { initApplication(); } }