barcode4j 2.1.0

org.krysalis.barcode4j.cli
Class AbstractExitHandler

java.lang.Object
  extended by org.krysalis.barcode4j.cli.AbstractExitHandler
All Implemented Interfaces:
ExitHandler
Direct Known Subclasses:
DefaultExitHandler

public abstract class AbstractExitHandler
extends java.lang.Object
implements ExitHandler

Abstract base class for an exit handler for the CLI.

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

Constructor Summary
AbstractExitHandler()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractExitHandler

public AbstractExitHandler()
Method Detail

successfulExit

public void successfulExit(Main app)
Description copied from interface: ExitHandler
Called to indicate a clean, successful exit.

Specified by:
successfulExit in interface ExitHandler
Parameters:
app - the application instance
See Also:
ExitHandler

failureExit

public void failureExit(Main app,
                        java.lang.String msg,
                        java.lang.Throwable t,
                        int exitCode)
Description copied from interface: ExitHandler
Called to indicate an exit with failure.

Specified by:
failureExit in interface ExitHandler
Parameters:
app - the application instance
msg - an error message
t - an associated exception (may be null)
exitCode - application exit code (must be non-zero)
See Also:
ExitHandler

barcode4j 2.1.0

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