barcode4j 2.1.0

org.krysalis.barcode4j.cli
Class DefaultExitHandler

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

public class DefaultExitHandler
extends AbstractExitHandler

Default exit handler that calls System.exit().

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

Constructor Summary
DefaultExitHandler()
           
 
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

DefaultExitHandler

public DefaultExitHandler()
Method Detail

failureExit

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

Specified by:
failureExit in interface ExitHandler
Overrides:
failureExit in class AbstractExitHandler
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

successfulExit

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

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

barcode4j 2.1.0

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