Top Description Methods
com.sun.star.lib.util

public Interface DisposeNotifier

Known Direct Implementers
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge

Optional interface to be implemented by objects stored in a WeakMap.
See Also
WeakMap

Method Summary

Modifier and TypeMethod and Description
public void
addDisposeListener(DisposeListener
a dispose listener, to be notified when this object is disposed; must not be null
listener
)

Adds a dispose listener, to be notified when this object is disposed.

Method Detail

addDisposeListenerback to summary
public void addDisposeListener(DisposeListener listener)

Adds a dispose listener, to be notified when this object is disposed.

It is unspecified what happens when the same listener is added multiple times.

It is unspecified exactly when the notifyDispose callback is fired: immediately before the notifier is disposed, while it is in the process of disposing, or some time after it got disposed. But even if adding a listener to an already disposed notifier, the listener must eventually receive a notifyDispose callback.

Parameters
listener:DisposeListener

a dispose listener, to be notified when this object is disposed; must not be null