001    /*****************************************************************************
002     * Copyright (C) PicoContainer Organization. All rights reserved.            *
003     * ------------------------------------------------------------------------- *
004     * The software in this package is published under the terms of the BSD      *
005     * style license a copy of which has been included with this distribution in *
006     * the LICENSE.txt file.                                                     *
007     *                                                                           *
008     * Original code by                                                          *
009     *****************************************************************************/
010    package org.picocontainer.containers;
011    
012    import org.picocontainer.ComponentFactory;
013    import org.picocontainer.DefaultPicoContainer;
014    import org.picocontainer.PicoContainer;
015    import org.picocontainer.behaviors.Caching;
016    import org.picocontainer.injectors.ConstructorInjection;
017    import org.picocontainer.lifecycle.NullLifecycleStrategy;
018    import org.picocontainer.monitors.NullComponentMonitor;
019    
020    @SuppressWarnings("serial")
021    public class TransientPicoContainer extends DefaultPicoContainer {
022    
023        public TransientPicoContainer() {
024            super(new Caching().wrap(new ConstructorInjection()), new NullLifecycleStrategy(), null, new NullComponentMonitor());
025        }
026    
027        public TransientPicoContainer(PicoContainer parent) {
028            super(new Caching().wrap(new ConstructorInjection()), new NullLifecycleStrategy(), parent, new NullComponentMonitor());
029        }
030        
031        public TransientPicoContainer(ComponentFactory componentFactory, PicoContainer parent) {
032            super(componentFactory, new NullLifecycleStrategy(), parent, new NullComponentMonitor());
033        }
034    }