Packageverlocity.core
Classpublic final class SingletonManager
InheritanceSingletonManager Inheritance Object



Public Methods
 MethodDefined By
  
IsActive(instance:*):Boolean
[static] Returns if a Singleton class instance is in the dictionary.
SingletonManager
  
Remove(instance:*):void
[static] Removes a Singleton class instance from the dictionary to allow for recreation.
SingletonManager
  
Validate(instance:*):Boolean
[static] Validates a new Singleton class instance to determine if the class has previously been instantiated, if so, an Exception is thrown, thus indicating that the class is a Singleton and is only intended to have a single instance instantiated
SingletonManager
Method Detail
IsActive()method
public static function IsActive(instance:*):Boolean

Returns if a Singleton class instance is in the dictionary.

Parameters

instance:* — Singleton class instance which is currently instanitated

Returns
Boolean
Remove()method 
public static function Remove(instance:*):void

Removes a Singleton class instance from the dictionary to allow for recreation.

Parameters

instance:* — Singleton class instance which has been instantiated

Validate()method 
public static function Validate(instance:*):Boolean

Validates a new Singleton class instance to determine if the class has previously been instantiated, if so, an Exception is thrown, thus indicating that the class is a Singleton and is only intended to have a single instance instantiated

Parameters

instance:* — class instance which has been instantiated

Returns
Boolean