Mixin: SingletonMixin

qui.base.SingletonMixin

A mixin that helps implementing the singleton pattern.

Methods

(static) getInstance() → {Object}

Return the singleton instance. Instantiates the class on first call.

Source:
Returns:

the instance

Type
Object

(static) setup(…args)

Prepare the class for instantiation, establishing the constructor arguments.

Any arguments passed to this method will be passed to the constructor, when creating the singleton.

Parameters:
Name Type Attributes Description
args * <repeatable>

arguments to be passed to the constructor

Source: