equip.runtime
Class SingletonManager

java.lang.Object
  extended byequip.runtime.SingletonManager

public class SingletonManager
extends java.lang.Object

Provides a single static method to get singleton instances of name class(es). Also implemented in C++, but not IDL'd.


Method Summary
static java.lang.Object get(java.lang.String name)
          Return a reference to the SingletonManager's singleton instance of the named class.
static void remove(java.lang.String name)
          you probably don't want to do this :-) - an experimental operation to remove the singleton from the internal hashtable (for GC).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static java.lang.Object get(java.lang.String name)
Return a reference to the SingletonManager's singleton instance of the named class. In the future we may be able to use weak references to still allow GC on the singleton, but for now it will probably never go away (unless you use the - interrim/dangerous? - remove).

Parameters:
name - The dot-qualified full name of the class to be returned, e.g. 'equip.config.ConfigManagerImpl'.
Returns:
A reference to a singleton instance of the class, or null if the class could not be loaded.

remove

public static void remove(java.lang.String name)
you probably don't want to do this :-) - an experimental operation to remove the singleton from the internal hashtable (for GC).