FileDocCategorySizeDatePackage
ExitHookManager.javaAPI DocAndroid 1.5 API4029Wed May 06 22:41:16 BST 2009com.vladium.util.exit

ExitHookManager

public abstract class ExitHookManager extends Object implements com.vladium.util.IJREVersion
author
Vlad Roubtsov, (C) 2003

Fields Summary
private static ExitHookManager
s_singleton
Constructors Summary
protected ExitHookManager()

Methods Summary
public abstract booleanaddExitHook(java.lang.Runnable runnable)

public static synchronized com.vladium.util.exit.ExitHookManagergetSingleton()

        if (s_singleton == null)
        {
            if (JRE_1_3_PLUS)
            {
                s_singleton = new JRE13ExitHookManager ();
            }
            else
            {
                throw new UnsupportedOperationException ("no shutdown hook manager available [JVM: " + Property.getSystemFingerprint () + "]");
            }
        }
        
        return s_singleton;
    
public abstract booleanremoveExitHook(java.lang.Runnable runnable)