Language
Asturianu (ast)
Català (ca)
Čeština (cs)
Dansk (da)
Deutsch (de)
English [US] (en-US)
Español (es)
Esperanto (eo)
Eesti keel (et)
Euskara (eu)
Français (fr)
Gàidhlig (gd)
Galego (gl)
Italiano (it)
Lietuvių (lt)
Magyar (hu)
Nederlands (nl)
Norsk (no)
Polski (pl)
Português [do Brasil] (pt-BR)
Português [Europeu] (pt)
Română (ro)
Slovenčina (sk)
Slovenščina (sl)
Suomi (fi)
Svenska (sv)
Yкраїнська (uk)
Tiếng Việt (vi)
Türkçe (tr)
ኦሮሚኛ (om)
Հայերեն (hy)
Ελληνικά (el)
български език (bg)
Русский (ru)
Cрпски [ћирилицом] (sr)
עברית (he)
हिन्दी (hi)
ភាសាខ្មែរ (km)
தமிழ் (ta)
ภาษาไทย (th)
简体中文 (zh-CN)
正體中文 (zh-TW)
日本語 (ja)
한국어 (ko)
The Free and Open Productivity Suite
WeakAdapter (Java UNO Runtime Reference)
com.sun.star.lib.uno.helper
Class WeakAdapter
java.lang.Object
com.sun.star.lib.uno.helper.WeakAdapter
All Implemented Interfaces: XAdapter , XInterface
public class WeakAdapter extends Object implements XAdapter
An XAdapter implementation that holds a weak reference (java.lang.ref.WeakReference)
to an object. Clients can register listener (com.sun.star.lang.XReference) which
are notified when the 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.
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
WeakAdapter
public WeakAdapter (Object component)
Parameters: component
- the object that is to be held weak
queryAdapted
public Object queryAdapted ()
Method of com.sun.star.uno.XAdapter. It is called to obtain a hard reference
to the object which is kept weak by this instance.
Specified by: queryAdapted
in interface XAdapter
Returns: hard reference to the object
removeReference
public void removeReference (XReference xReference)
Method of com.sun.star.uno.XAdapter. Called by clients to register listener which
are notified when the weak object is dying.
Specified by: removeReference
in interface XAdapter
Parameters: xReference
- a listener
addReference
public void addReference (XReference xReference)
Method of com.sun.star.uno.XAdapter. Called by clients to unregister listeners.
Specified by: addReference
in interface XAdapter
Parameters: a
- listener