UDK 3.1.0 Java API Reference

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

java.lang.Object
  拡張com.sun.star.lib.uno.helper.WeakBase
すべての実装インタフェース:
XInterface, XTypeProvider, XWeak
直系の既知のサブクラス:
ComponentBase

public class WeakBase
extends Object
implements XWeak, XTypeProvider

This class can be used as the base class for UNO components. It implements the capability to be kept weak (com.sun.star.uno.XWeak) and it implements com.sun.star.lang.XTypeProvider which is necessary for using the component with StarBasic.


フィールドの概要
protected static Map _mapImplementationIds
           
protected static Map _mapTypes
           
 
インタフェース com.sun.star.uno.XWeak から継承したフィールド
UNOTYPEINFO
 
インタフェース com.sun.star.lang.XTypeProvider から継承したフィールド
UNOTYPEINFO
 
コンストラクタの概要
WeakBase()
           
 
メソッドの概要
protected  void finalize()
          Override of Object.finalize.
 byte[] getImplementationId()
          Method of XTypeProvider.
 Type[] getTypes()
          Method of XTypeProvider.
 XAdapter queryAdapter()
          Method of XWeak.
 
クラス java.lang.Object から継承したメソッド
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

_mapImplementationIds

protected static Map _mapImplementationIds

_mapTypes

protected static Map _mapTypes
コンストラクタの詳細

WeakBase

public WeakBase()
メソッドの詳細

queryAdapter

public XAdapter queryAdapter()
Method of XWeak. The returned XAdapter implementation can be used to keap a weak reference to this object.

定義:
インタフェース XWeak 内の queryAdapter
戻り値:
a com.sun.star.uno.XAdapter implementation.

finalize

protected void finalize()
                 throws Throwable
Override of Object.finalize. When there are no references to this object anymore then the garbage collector calls this method. Thereby causing the adapter object to be notified. The adapter, in turn, notifies all listeners (com.sun.star.uno.XReference)

例外:
Throwable

getTypes

public Type[] getTypes()
Method of XTypeProvider. It returns an array of Type objects which represent all implemented UNO interfaces of this object.

定義:
インタフェース XTypeProvider 内の getTypes
戻り値:
Type objects of all implemented interfaces.

getImplementationId

public byte[] getImplementationId()
Method of XTypeProvider. It provides an identifier that represents the set of UNO interfaces implemented by this class. All instances of this class which run in the same Java Virtual Machine return the same array. (This only works as long the ClassLoader preserves the class even if no instance exist.)

定義:
インタフェース XTypeProvider 内の getImplementationId
戻り値:
identifier as array of bytes

UDK 3.1.0 Java API Reference