| | |
| SR-JRC | a java richclient framework |
| Description of startup procedure The start of an application with database access need lots of configuration, initialization, preparation, and pre reading of data ... As already mentioned at Configuration, the SR-JRC application can be separated into 3 types of applications:
After hiding the amount of configuration, initialization and preparations, the interface for desktop applications got quite simple. The application needs to implements the interface
public static void main(String[] args) {
List The configuration class is a java bean, that holds the application state, size and position and it will be stored for each user separately using java preferences. Finally the application should get the chance to fake some commandline parameters. Therefor the commandline parameters will we packed into a List, which will be passed to the application startup helper. When the startup helper has terminated the grunt work of initialization, it will pass control to the application by calling the run method. The desktop starter uses Swingthread for that issue. Sooner or later run method will lead to a call of Click on the picture on the left to examine the startup procedure. If you use a This kind of startup is used by the java installer of VdrAssistant, a wizard application without desktop or loadable applications. The biggest part of application setup is identically to the start of a desktop application. Therefore both startup helpers share the same ancestor,
public static void main(String[] args) {
List Systemservices have different needs than desktop applications, therefor the service starter expects an implementation of The configuration class is a java bean again, but instead of storing parameters like size and position, it holds log configuration and the ip-address of the services host. Opposed to desktop application startes start() method, which will never return, the service startup helper expects the service run() method to contain the execution of a single task processing, which shall be executed cyclically. So the service startup helper enters a work loop, that will repeatedly call the Click on the picture on the left to examine the startup en details. |