1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 }