001    /*******************************************************************************
002     * Copyright (C) PicoContainer Organization. All rights reserved.
003     * --------------------------------------------------------------------------
004     * The software in this package is published under the terms of the BSD style
005     * license a copy of which has been included with this distribution in the
006     * LICENSE.txt file.
007     ******************************************************************************/
008    package org.picocontainer.web;
009    
010    import org.picocontainer.MutablePicoContainer;
011    import org.picocontainer.behaviors.Storing;
012    
013    public class StoringContainerHolder extends ContainerHolder {
014    
015        private final Storing storing;
016        private final ThreadLocalLifecycleState lifecycleState;
017    
018        public StoringContainerHolder(MutablePicoContainer container, Storing storing, ThreadLocalLifecycleState lifecycleState) {
019            super(container);
020            this.storing = storing;
021            this.lifecycleState = lifecycleState;
022        }
023    
024        Storing getStoring() {
025            return storing;
026        }
027    
028        ThreadLocalLifecycleState getLifecycleStateModel() {
029            return lifecycleState;
030        }
031    
032    }
033