Singleton¶
Singleton helpers and boilerplate¶
-
class
orion.core.utils.singleton.AbstractSingletonType(name, bases, namespace, **kwargs)[source]¶ This will create singleton base classes, that need to be subclassed and implemented.
-
exception
orion.core.utils.singleton.SingletonAlreadyInstantiatedError(name)[source]¶ Exception to be raised when someone provides arguments to build an object from a already-instantiated
SingletonTypeclass.
-
class
orion.core.utils.singleton.SingletonFactory(name, bases, namespace, **kwargs)[source]¶ Wrapping
orion.core.utils.FactorywithSingletonType. Keep compatibility withAbstractSingletonType.
-
exception
orion.core.utils.singleton.SingletonNotInstantiatedError(name)[source]¶ Exception to be raised when someone try to access an instance of a singleton that has not been instantiated yet