Package elisa :: Package core :: Package utils :: Module singleton :: Class Singleton
[hide private]
[frames] | no frames]

Class Singleton

source code


Implements the Singleton pattern.

Every class inheriting from Singleton will have one and only one instance of its kind at any time.

NOTE: uses __new__ which has been introduced in Python 2.2

Instance Methods [hide private]

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Static Methods [hide private]
 
__new__(cls, *args, **kwargs)
Returns: a new object with type S, a subtype of T
source code
Class Variables [hide private]
  __instance = 'frontend'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__new__(cls, *args, **kwargs)
Static Method

source code 
Returns:
a new object with type S, a subtype of T

Overrides: object.__new__
(inherited documentation)