com.monoserv.patterns
Class Singleton

java.lang.Object
  extended by com.monoserv.patterns.Singleton
Direct Known Subclasses:
MonoConfiguration

public abstract class Singleton
extends java.lang.Object

This is a simple implementation of a Singleton. Needs to be improved upon.


Constructor Summary
protected Singleton()
          Hide the constructor so no one can instantiate the object.
 
Method Summary
abstract  java.lang.Object getInstance()
          Returns the "one-and-only" instance of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Singleton

protected Singleton()
Hide the constructor so no one can instantiate the object.

Method Detail

getInstance

public abstract java.lang.Object getInstance()
Returns the "one-and-only" instance of the object.

Returns:
Object A java object of the sub-classed class type