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

    Modifier and Type
    Method
    Description
    void
    exit(int retVal)
    Calling this method indicates that the application should shutdown.
    void
    exit(int retVal, boolean force)
    Calling this method indicates that the application should shutdown.
  • 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) call System.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 call System.exit(int) with.