Interface Disposable


public interface Disposable
Marker interface that indicates that given class is disposable - meaning shall be manually or automatically disposed on close events.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Allows to register listeners to be notified whenever instance is disposed so dependent instances can take proper action on that occasion.
    void
    Actual logic that shall be executed on dispose.
  • Method Details

    • dispose

      void dispose()
      Actual logic that shall be executed on dispose.
    • addDisposeListener

      void addDisposeListener(DisposeListener listener)
      Allows to register listeners to be notified whenever instance is disposed so dependent instances can take proper action on that occasion.
      Parameters:
      listener - callback listener instance