Runtime.getRuntime().addShutdownHook( new ApplicationPassivationThread( application ) );
Constructors to control where errors are logged are provided. They support PrintStream (STDOUT/STDERR) and SLF4J Loggers. Defaults to STDERR.
230231232233234235236
public static void main( String[] args ) throws JSONException, ActivationException, AssemblyException { ApplicationBuilder builder = fromJson( System.in ); Application application = builder.newApplication(); Runtime.getRuntime().addShutdownHook( new ApplicationPassivationThread( application, System.err ) ); }