ERXMainRunner Class Reference

Inherits er::extensions::appserver::ERXApplication.

Collaboration diagram for ERXMainRunner:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void didFinishLaunching ()
 ERXMainRunner ()

Static Public Member Functions

static void main (String[] args)

Static Public Attributes

static String[] _args


Detailed Description

ERXMainRunner makes it a little easier to run a main method that requires a full application context. You can setup an Eclipse run profile for the WOApplication "ERXMainRunner" with the command line parameter:

-mainClass MyMainClass

or

-mainClass MyMainClass -mainMethod main2

And it will run an application, call the main method you passed in, and then System.exit. Provide an empty mainClass string if you handle everything in your startup.

Author:
mschrag (inspired by Anjo :) )

Constructor & Destructor Documentation

ERXMainRunner (  ) 


Member Function Documentation

void didFinishLaunching (  ) 

Called when the application posts WOApplication#ApplicationDidFinishLaunchingNotification. Override this to perform application specific tasks after the application has been initialized. THis is a good spot to perform batch application tasks.

Reimplemented from ERXApplication.

static void main ( String[]  args  )  [static]


Member Data Documentation

String [] _args [static]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:02 2012 for Project Wonder by  doxygen 1.5.8