LibreOffice Module cli_ure (master) 1
|
An XAdapter implementation that holds a weak reference (System.WeakReference) to an object. More...
Public Member Functions | |
WeakAdapter (Object obj) | |
ctor. More... | |
Object | queryAdapted () |
Called to obtain a hard reference o the object which is kept weakly by this instance. More... | |
void | removeReference (XReference xReference) |
Called by clients to register listener which are notified when the weak object is dying. More... | |
void | addReference (XReference xReference) |
Called by clients to unregister listeners. More... | |
Private Member Functions | |
delegate void | XReference_dispose () |
Private Attributes | |
WeakReference | m_weakRef |
XReference_dispose | m_XReference_dispose |
An XAdapter implementation that holds a weak reference (System.WeakReference) to an object.
Clients can register listeners (unoidl.com.sun.star.lang.XReference) which are notified when the object (the one which is kept weak) is being finalized. That is, that object is being destroyed because there are not any hard references to it.
Definition at line 33 of file WeakAdapter.cs.
|
inline |
ctor.
obj | the object that is to be held weakly |
Definition at line 45 of file WeakAdapter.cs.
References uno.util.WeakAdapter.m_weakRef, and uno.util.WeakAdapter.m_XReference_dispose.
|
inline |
Called by clients to unregister listeners.
xReference | a listener |
Definition at line 101 of file WeakAdapter.cs.
References lock(), uno.util.WeakAdapter.m_XReference_dispose, and uno.util.WeakAdapter.XReference_dispose().
|
inline |
Called to obtain a hard reference o the object which is kept weakly by this instance.
Definition at line 80 of file WeakAdapter.cs.
References uno.util.WeakAdapter.m_weakRef, and Object.
|
inline |
Called by clients to register listener which are notified when the weak object is dying.
xReference | a listener |
Definition at line 89 of file WeakAdapter.cs.
References lock(), uno.util.WeakAdapter.m_XReference_dispose, and uno.util.WeakAdapter.XReference_dispose().
|
private |
Referenced by uno.util.WeakAdapter.addReference(), and uno.util.WeakAdapter.removeReference().
|
private |
Definition at line 36 of file WeakAdapter.cs.
Referenced by uno.util.WeakAdapter.queryAdapted(), and uno.util.WeakAdapter.WeakAdapter().
|
private |
Definition at line 39 of file WeakAdapter.cs.
Referenced by uno.util.WeakAdapter.addReference(), uno.util.WeakAdapter.removeReference(), and uno.util.WeakAdapter.WeakAdapter().