01: /*****************************************************************************
02: * Copyright (C) PicoContainer Organization. All rights reserved. *
03: * ------------------------------------------------------------------------- *
04: * The software in this package is published under the terms of the BSD *
05: * style license a copy of which has been included with this distribution in *
06: * the LICENSE.txt file. *
07: * *
08: * Original code by *
09: *****************************************************************************/package org.picocontainer.containers;
10:
11: import org.picocontainer.DefaultPicoContainer;
12: import org.picocontainer.PicoContainer;
13: import org.picocontainer.injectors.ConstructorInjection;
14: import org.picocontainer.behaviors.Caching;
15: import org.picocontainer.lifecycle.NullLifecycleStrategy;
16: import org.picocontainer.monitors.NullComponentMonitor;
17:
18: public class TransientPicoContainer extends DefaultPicoContainer {
19:
20: public TransientPicoContainer() {
21: super (new Caching().wrap(new ConstructorInjection()),
22: new NullLifecycleStrategy(), null,
23: new NullComponentMonitor());
24: }
25:
26: public TransientPicoContainer(PicoContainer parent) {
27: super (new Caching().wrap(new ConstructorInjection()),
28: new NullLifecycleStrategy(), parent,
29: new NullComponentMonitor());
30: }
31: }
|