org.kde.koala
Class KStaticDeleterBase

java.lang.Object
  extended by org.kde.koala.KStaticDeleterBase
All Implemented Interfaces:
org.kde.qt.QtSupport

public class KStaticDeleterBase
extends java.lang.Object
implements org.kde.qt.QtSupport

Static deleters are used to manage static resources. They can register themselves with KGlobal. KGlobal will call destructObject() when KGlobal.deleteStaticDeleters() is called or when it the process finishes.

See Also:
KStaticDeleter, KGlobal.registerStaticDeleter(org.kde.koala.KStaticDeleterBase), KGlobal.unregisterStaticDeleter(org.kde.koala.KStaticDeleterBase), KGlobal.deleteStaticDeleters()

Constructor Summary
  KStaticDeleterBase()
           
protected KStaticDeleterBase(java.lang.Class dummy)
           
 
Method Summary
 void destructObject()
          Should destruct the resources managed by this KStaticDeleterBase.
 void dispose()
          Delete the wrapped C++ instance ahead of finalize()
protected  void finalize()
          Deletes the wrapped C++ instance
 boolean isDisposed()
          Has the wrapped C++ instance been deleted?
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KStaticDeleterBase

protected KStaticDeleterBase(java.lang.Class dummy)

KStaticDeleterBase

public KStaticDeleterBase()
Method Detail

destructObject

public void destructObject()
Should destruct the resources managed by this KStaticDeleterBase. Usually you also want to call it in your destructor.

See Also:
KGlobal.deleteStaticDeleters()

finalize

protected void finalize()
                 throws java.lang.InternalError
Deletes the wrapped C++ instance

Overrides:
finalize in class java.lang.Object
Throws:
java.lang.InternalError

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()


isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?