Package 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
Modifier and TypeMethodDescriptionvoidaddDisposeListener(DisposeListener listener) Allows to register listeners to be notified whenever instance is disposed so dependent instances can take proper action on that occasion.voiddispose()Actual logic that shall be executed on dispose.
-
Method Details
-
dispose
void dispose()Actual logic that shall be executed on dispose. -
addDisposeListener
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
-