View Javadoc
1   /* 
2    * Created on May 22, 2004
3    * 
4    * This library is free software; you can redistribute it and/or
5    * modify it under the terms of the GNU Lesser General Public
6    * License as published by the Free Software Foundation; either
7    * version 2.1 of the License, or (at your option) any later version.
8    * 
9    * This library is distributed in the hope that it will be useful,
10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12   * Lesser General Public License for more details.
13   * 
14   * Full GNU LGPL license terms : http://www.gnu.org/copyleft/lesser.txt
15   * 
16   * Project : iky-container
17   * Package : net.wmind.container.component
18   * Author : mchaplin@users.sourceforge.net
19   * 
20   */
21  package net.mchaplin.ioc.configuration;
22  
23  import net.mchaplin.commons.WmindObject;
24  import net.mchaplin.ioc.ContainerI;
25  
26  
27  /***
28   * Default, ready-to-use ConfigurationI implementation
29   * 
30   * @author mchaplin@users.sourceforge.net
31   * 
32   * $Header: 
33   * $Revision: 
34   * $Date:
35   *
36   */
37  public class DefaultConfiguration extends WmindObject implements ConfigurationI {
38      
39      private ContainerI container = null;
40      
41      public DefaultConfiguration() {
42          super();
43      }
44      
45      /***
46       * @see net.mchaplin.ioc.component.ComponentI#reset()
47       */
48      public void reset() {
49          container = null;
50      }
51      
52      /***
53       * @see net.mchaplin.ioc.component.ComponentI#getContainer()
54       */
55      public ContainerI getContainer() {
56          return container;
57      }
58      
59      
60  
61      /***
62       * @see net.mchaplin.ioc.component.ComponentI#setContainer(net.mchaplin.ioc.ContainerI)
63       */
64      public void setContainer(ContainerI aContainer) {
65          container = aContainer;
66      }
67  }