| Modifier and Type | Field and Description |
|---|---|
| private final WeakReference | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Object | |
| pack-priv void | |
| public void | removeReference(com.
a listener xReferenceMethod of com.sun.star.uno.XAdapter. |
| m_weakRef | back to summary |
|---|---|
| private final WeakReference<Object> m_weakRef | |
| m_xreferenceList | back to summary |
|---|---|
| private final List<com. | |
| WeakAdapter | back to summary |
|---|---|
public WeakAdapter(Object component)
| |
| addReference | back to summary |
|---|---|
| public void addReference(com. Method of com.sun.star.uno.XAdapter. Called by clients to unregister listeners.
| |
| queryAdapted | back to summary |
|---|---|
| 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.
| |
| referentDying | back to summary |
|---|---|
| pack-priv void referentDying() Called by the XWeak implementation (WeakBase) when it is being finalized. It is only being called once. The registered XReference listeners are notified. On notification they are to unregister themselves. The notification is thread-safe. However, it is possible to add a listener during the notification process, which will never receive a notification. To prevent this, one would have to synchronize this method with the addReference method. But this can result in deadlocks in a multi-threaded environment. | |
| removeReference | back to summary |
|---|---|
| public void removeReference(com. Method of com.sun.star.uno.XAdapter. Called by clients to register listener which are notified when the weak object is dying.
| |