Package com.sun.star.lib.uno.helper
Class WeakAdapter
java.lang.Object
com.sun.star.lib.uno.helper.WeakAdapter
- All Implemented Interfaces:
- XAdapter,- XInterface
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 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.
- 
Field SummaryFields inherited from interface com.sun.star.uno.XAdapterUNOTYPEINFO
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddReference(XReference xReference) Method of com.sun.star.uno.XAdapter.Method of com.sun.star.uno.XAdapter.voidremoveReference(XReference xReference) Method of com.sun.star.uno.XAdapter.
- 
Constructor Details- 
WeakAdapter- Parameters:
- component- the object that is to be held weak
 
 
- 
- 
Method Details- 
queryAdaptedMethod of com.sun.star.uno.XAdapter. It is called to obtain a hard reference to the object which is kept weak by this instance.- Specified by:
- queryAdaptedin interface- XAdapter
- Returns:
- hard reference to the object
 
- 
removeReferenceMethod of com.sun.star.uno.XAdapter. Called by clients to register listener which are notified when the weak object is dying.- Specified by:
- removeReferencein interface- XAdapter
- Parameters:
- xReference- a listener
 
- 
addReferenceMethod of com.sun.star.uno.XAdapter. Called by clients to unregister listeners.- Specified by:
- addReferencein interface- XAdapter
- Parameters:
- xReference- listener
 
 
-