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.
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)