Cytoscape 3.1.1 API

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.


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.

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>

Method Summary
 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 Detail

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.

Cytoscape 3.1.1 API

Copyright 2011 Cytoscape Consortium. All rights reserved.