Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/main/java/org/scijava/Gateway.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
* @author Mark Hiner
* @author Curtis Rueden
*/
public interface Gateway extends RichPlugin {
public interface Gateway extends RichPlugin, Disposable {

/**
* Perform launch operations associated with this gateway.
Expand Down Expand Up @@ -372,4 +372,8 @@ public interface Gateway extends RichPlugin {
/** @see org.scijava.app.App#getInfo(boolean) */
String getInfo(boolean mem);

@Override
default void dispose() {
context().dispose();
}
}