org.kie.internal.runtime.manager

## 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

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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.
    `void` | `dispose()` Actual logic that shall be executed on dispose.

- - ### Method Detail

    - #### 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

Copyright © 2001–2015 JBoss by Red Hat. All rights reserved.