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 >

Variable Index

 o _oInstance
For each Class type an instance gets saved so we can inherit and use Singleton for different other classes.

Constructor Index

 o Singleton()
Users can't instantiate an object themself.

Method Index

 o getInstance()

Variables

 o _oInstance
 private static Object _oInstance
For each Class type an instance gets saved so we can inherit and use Singleton for different other classes.

Constructors

 o Singleton
 protected Singleton()
Users can't instantiate an object themself. They need to use getInstance instead.

Methods

 o getInstance
 public static Object getInstance()

All Packages  Class Hierarchy  This Package  Previous  Next  Index