All Packages Class Hierarchy This Package Previous Next Index
Class ccl.util.Singleton
java.lang.Object
|
+----ccl.util.Singleton
- public class Singleton
- extends Object
Singleton: Ensure a class only has one
instance, and provide a global point of access to
it.
- Version:
- $Id: Singleton.java,v 1.2 1999/08/01 11:13:05 clemens Exp clemens $
- Author:
-
Chr. Clemens Lee
<
clemens@kclee.com
>
-
_oInstance
- For each Class type an instance gets saved so we can
inherit and use Singleton for different other classes.
-
Singleton()
- Users can't instantiate an object themself.
-
getInstance()
-
_oInstance
private static Object _oInstance
- For each Class type an instance gets saved so we can
inherit and use Singleton for different other classes.
Singleton
protected Singleton()
- Users can't instantiate an object themself. They need to
use getInstance instead.
getInstance
public static Object getInstance()
All Packages Class Hierarchy This Package Previous Next Index