ApplicationSingleton

ApplicationSingleton — allows creation of only one instance of the class.

Syntax

ApplicationSingleton (klass)
    

Arguments

klass

The name of a class.

Returns

The instance of the class named by klass.

Description

This function creates a singleton based on the name of a class, which in most cases is desirable. This is useful because a class is routinely redefined by reloading its corresponding file, The alternative, ApplicationMultiple gives instances of the class the same name but not the same definition.