Preferred way of application initialization

Posted by lisak on Stack Overflow See other posts from Stack Overflow or by lisak
Published on 2010-06-16T18:37:46Z Indexed on 2010/06/16 18:42 UTC
Read the original article Hit count: 218

Filed under:
|
|
|

Do you guys have your own little framework for project startups ? I mean, every time one needs to do the same things at the beginning:


Context initialization - ideally after arguments are processed. Sometimes without interactive user input, sometimes with input reader. Sometimes we need to load properties, sometimes not. Then we need to get a class out of context and run its method. Programming....programming until writing shell script to place everything on classpath.


It's true that it differs according to the actual needs. But it seems to me, that I'm doing always almost the same, again and again from the scratch. Sometimes I realize that I'm postponing my work just because I don't want to do these annoying startups.


It would be great if there was some kind of universal Main class doing reflection to specified bean, context initialization, argument parsing, interactive user input reading and have the programmer do the important things...All setup might be done via spring configuration. I think I'll have to do it by myself.

I'd appreciate your ideas

© Stack Overflow or respective owner

Related posts about java

Related posts about spring