UDK 3.2.0 Java API Reference

com.sun.star.lib.uno.helper
クラス WeakAdapter

java.lang.Object
  拡張com.sun.star.lib.uno.helper.WeakAdapter
すべての実装インタフェース:
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.


フィールドの概要
 
インタフェース com.sun.star.uno.XAdapter から継承したフィールド
UNOTYPEINFO
 
コンストラクタの概要
WeakAdapter(Object component)
           
 
メソッドの概要
 void addReference(XReference xReference)
          Method of com.sun.star.uno.XAdapter.
 Object queryAdapted()
          Method of com.sun.star.uno.XAdapter.
 void removeReference(XReference xReference)
          Method of com.sun.star.uno.XAdapter.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

WeakAdapter

public WeakAdapter(Object component)
パラメータ:
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.

定義:
インタフェース XAdapter 内の queryAdapted
戻り値:
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.

定義:
インタフェース XAdapter 内の removeReference
パラメータ:
xReference - a listener

addReference

public void addReference(XReference xReference)
Method of com.sun.star.uno.XAdapter. Called by clients to unregister listeners.

定義:
インタフェース XAdapter 内の addReference

UDK 3.2.0 Java API Reference