Package org.cytoscape.application
Interface CyShutdown
public interface CyShutdown
A service that will shutdown Cytoscape cleanly. Will fire a
CytoscapeShutdownEvent such that all CytoscapeShutdownListener will be
notified before actually shutting down.
Module: application-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>application-api</artifactId> </dependency>
Cytoscape Backwards Compatibility (API Interface): We expect that this interface will be used but not implemented by developers using this interface. As such, we reserve the right to add methods to the interface as part of minor version upgrades. We will not remove methods for any changes other than major version upgrades.
-
Method Summary
-
Method Details
-
exit
void exit(int retVal) Calling this method indicates that the application should shutdown.- Parameters:
retVal
- The return value with which to (eventually) callSystem.exit(int)
with.
-
exit
void exit(int retVal, boolean force) Calling this method indicates that the application should shutdown.- Parameters:
retVal
- The return value with which to (eventually)force
- If true, force shutdown without prompting user callSystem.exit(int)
with.
-