Class WeakBase

All Implemented Interfaces:
XTypeProvider, XInterface, XWeak
Direct Known Subclasses:

public class WeakBase extends Object implements XWeak, XTypeProvider
This class can be used as the base class for UNO components. It implements the capability to be kept weak ( and it implements which is necessary for using the component with StarBasic.
  • Field Details

    • _mapTypes

      protected static Map<Class<?>,Type[]> _mapTypes
  • Constructor Details

    • WeakBase

      public WeakBase()
  • Method Details

    • queryAdapter

      public XAdapter queryAdapter()
      Method of XWeak. The returned XAdapter implementation can be used to keep a weak reference to this object.
      Specified by:
      queryAdapter in interface XWeak
      a implementation.
    • finalize

      protected void finalize() throws Throwable
      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 (
      finalize in class Object
    • getTypes

      public Type[] getTypes()
      Method of XTypeProvider. It returns an array of Type objects which represent all implemented UNO interfaces of this object.
      Specified by:
      getTypes in interface XTypeProvider
      Type objects of all implemented interfaces.
    • getImplementationId

      public byte[] getImplementationId()
      Obsolete method of XTypeProvider.
      Specified by:
      getImplementationId in interface XTypeProvider