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

pack-priv Class OWeakRefListener

Located in compilation unit of com.sun.star.uno.WeakReference.

extends Object
implements com.sun.star.uno.XReference
Class Inheritance

Implementation of com.sun.star.uno.XReference for use with WeakReference.

It keeps the XAdapter implementation and registers always with it. Deregistering occurs on notification by the adapter and the adapter is released.

Field Summary

Modifier and TypeField and Description
private com.sun.star.uno.XAdapter

Constructor Summary

AccessConstructor and Description
pack-priv
OWeakRefListener(com.sun.star.uno.XAdapter
the XAdapter implementation.
adapter
)

The constructor registered this object with adapter.

Method Summary

Modifier and TypeMethod and Description
public synchronized void
dispose()

Method of com.sun.star.uno.XReference.

pack-priv synchronized Object

Returns:

hard reference to the otherwise weakly kept object.
get
()

Obtains a hard reference to the object which is kept weak by the adapter and returns it.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

m_adapterback to summary
private com.sun.star.uno.XAdapter m_adapter

Constructor Detail

OWeakRefListenerback to summary
pack-priv OWeakRefListener(com.sun.star.uno.XAdapter adapter)

The constructor registered this object with adapter.

Parameters
adapter:com.sun.star.uno.XAdapter

the XAdapter implementation.

Method Detail

disposeback to summary
public synchronized void dispose()

Method of com.sun.star.uno.XReference.

When called, it deregisters this object with the adapter and releases the reference to it.

getback to summary
pack-priv synchronized Object get()

Obtains a hard reference to the object which is kept weak by the adapter and returns it.

Returns:Object

hard reference to the otherwise weakly kept object.