Top Description Fields Constructors Methods
com.sun.star.lib.uno.helper

public Class WeakBase

extends Object
implements com.sun.star.uno.XWeak, com.sun.star.lang.XTypeProvider
Class Inheritance
Known Direct Subclasses
com.sun.star.lib.uno.helper.PropertySetMixin.Info, com.sun.star.lib.uno.helper.ComponentBase
Imports
com.sun.star.uno.XWeak, com.sun.star.uno.XAdapter, com.sun.star.lang.XTypeProvider, com.sun.star.uno.Type, java.util.ArrayList, .Map, .HashMap

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.

Field Summary

Modifier and TypeField and Description
protected static Map<Class<?>, Type[]>
private WeakAdapter

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
finalize()

Overrides java.lang.Object.finalize.

Override of Object.finalize.

public byte[]
getImplementationId()

Obsolete method of XTypeProvider.

public Type[]

Returns:

Type objects of all implemented interfaces.
getTypes
()

Method of XTypeProvider.

public synchronized com.sun.star.uno.XAdapter

Returns:

a com.sun.star.uno.XAdapter implementation.
queryAdapter
()

Method of XWeak.

Inherited from java.lang.Object:
cloneequalsgetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_mapTypesback to summary
protected static Map<Class<?>, Type[]> _mapTypes
m_adapterback to summary
private WeakAdapter m_adapter

Constructor Detail

WeakBaseback to summary
public WeakBase()

Method Detail

finalizeback to summary
protected void finalize() throws Throwable

Overrides java.lang.Object.finalize.

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)

Annotations
@Override
Exceptions
Throwable:

Doc from java.lang.Object.finalize.

the Exception raised by this method

getImplementationIdback to summary
public byte[] getImplementationId()

Obsolete method of XTypeProvider.

getTypesback to summary
public Type[] getTypes()

Method of XTypeProvider. It returns an array of Type objects which represent all implemented UNO interfaces of this object.

Returns:Type[]

Type objects of all implemented interfaces.

queryAdapterback to summary
public synchronized com.sun.star.uno.XAdapter queryAdapter()

Method of XWeak. The returned XAdapter implementation can be used to keep a weak reference to this object.

Returns:com.sun.star.uno.XAdapter

a com.sun.star.uno.XAdapter implementation.