We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a2b4582 + c2bfbe6 commit e288b21Copy full SHA for e288b21
1 file changed
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