We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2b4582 commit c2bfbe6Copy full SHA for c2bfbe6
src/main/java/org/scijava/Gateway.java
@@ -120,7 +120,7 @@
120
* @author Mark Hiner
121
* @author Curtis Rueden
122
*/
123
-public interface Gateway extends RichPlugin {
+public interface Gateway extends RichPlugin, Disposable {
124
125
/**
126
* Perform launch operations associated with this gateway.
@@ -372,4 +372,8 @@ public interface Gateway extends RichPlugin {
372
/** @see org.scijava.app.App#getInfo(boolean) */
373
String getInfo(boolean mem);
374
375
+ @Override
376
+ default void dispose() {
377
+ context().dispose();
378
+ }
379
}
0 commit comments