barcode4j 2.1.0

org.krysalis.barcode4j.cli
Interface ExitHandler

All Known Implementing Classes:
AbstractExitHandler, DefaultExitHandler

public interface ExitHandler

Handles application exit events. This is used to make the CLI testable and to centralize exit behaviour.

Version:
$Id: ExitHandler.java,v 1.2 2004/09/04 20:25:58 jmaerki Exp $
Author:
Jeremias Maerki

Method Summary
 void failureExit(Main app, java.lang.String msg, java.lang.Throwable t, int exitCode)
          Called to indicate an exit with failure.
 void successfulExit(Main app)
          Called to indicate a clean, successful exit.
 

Method Detail

successfulExit

void successfulExit(Main app)
Called to indicate a clean, successful exit.

Parameters:
app - the application instance

failureExit

void failureExit(Main app,
                 java.lang.String msg,
                 java.lang.Throwable t,
                 int exitCode)
Called to indicate an exit with failure.

Parameters:
app - the application instance
msg - an error message
t - an associated exception (may be null)
exitCode - application exit code (must be non-zero)

barcode4j 2.1.0

Copyright © 2000-2010 Jeremias Maerki. All rights reserved.