jee-modules/jsf-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jsf/impl/listener/phase/CodiLifecycleFactoryWrapper.java [31:73]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
public class CodiLifecycleFactoryWrapper extends LifecycleFactory implements Deactivatable
{
    private final LifecycleFactory wrapped;
    private final boolean deactivated;

    /**
     * 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();
    }

    /**
     * {@inheritDoc}
     */
    public void addLifecycle(String s, Lifecycle lifecycle)
    {
        wrapped.addLifecycle(s, lifecycle);
    }

    /**
     * {@inheritDoc}
     */
    public Lifecycle getLifecycle(String s)
    {
        Lifecycle result = this.wrapped.getLifecycle(s);

        if(this.deactivated)
        {
            return result;
        }
        return new CodiLifecycleWrapper(result, PhaseListenerExtension.consumePhaseListeners());
    }

    /**
     * {@inheritDoc}
     */
    public Iterator<String> getLifecycleIds()
    {
        return wrapped.getLifecycleIds();
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



jee-modules/jsf20-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jsf2/impl/listener/phase/CodiLifecycleFactoryWrapper.java [32:75]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
public class CodiLifecycleFactoryWrapper extends LifecycleFactory implements Deactivatable
{
    private final LifecycleFactory wrapped;

    private final boolean deactivated;

    /**
     * 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();
    }

    /**
     * {@inheritDoc}
     */
    public void addLifecycle(String s, Lifecycle lifecycle)
    {
        wrapped.addLifecycle(s, lifecycle);
    }

    /**
     * {@inheritDoc}
     */
    public Lifecycle getLifecycle(String s)
    {
        Lifecycle result = this.wrapped.getLifecycle(s);

        if(this.deactivated)
        {
            return result;
        }
        return new CodiLifecycleWrapper(result, PhaseListenerExtension.consumePhaseListeners());
    }

    /**
     * {@inheritDoc}
     */
    public Iterator<String> getLifecycleIds()
    {
        return wrapped.getLifecycleIds();
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



