KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jfun > yan > containers > SingletonContainer


1 /*****************************************************************************
2  * Copyright (C) Codehaus.org. All rights reserved. *
3  * ------------------------------------------------------------------------- *
4  * The software in this package is published under the terms of the BSD *
5  * style license a copy of which has been included with this distribution in *
6  * the LICENSE.txt file. *
7  *****************************************************************************/

8 /*
9  * Created on Mar 8, 2005
10  *
11  * Author Ben Yu
12  * ZBS
13  */

14 package jfun.yan.containers;
15
16
17
18 /**
19  * A container that transforms all Component objects registered into it
20  * to singleton. It uses DefaultContainer as the underlying container.
21  * <p>
22  * Codehaus.org.
23  *
24  * @author Ben Yu
25  *
26  */

27 public class SingletonContainer extends TransformingContainer {
28   public SingletonContainer() {
29     super(new SimpleRegistrar(),
30         ComponentTransformers.singletor());
31   }
32 }
33
Popular Tags