Results 1 to 2 of 2

Thread: A built-in Main bootstraper in Spring core?

  1. #1
    Join Date
    Oct 2010
    Location
    FL, USA
    Posts
    13

    Default A built-in Main bootstraper in Spring core?

    Many times we just need a Main class that bootstrap the spring context, and let it run. Though loading Spring context with xml is very simple, just one class away (eg: FileSystemXmlApplicationContext), but I think it would be useful if Spring comes with one built-in that will take any spring xml files and auto bootstrap into running process from a command line.

    Not looking for any fancy, full blown server capability, but just a simple bootstraper readily available in spring-core.jar would be very useful, so as user don't have to provide one in each project for simple use cases.

    What others think on this?

    Thanks,
    Zemian Deng

  2. #2
    Join Date
    Oct 2010
    Location
    FL, USA
    Posts
    13

    Default

    I wrote a simple one, and you can try it here: http://code.google.com/p/spring-runner
    Last edited by saltnlight5; Mar 21st, 2012 at 10:07 AM.
    Zemian Deng
    ---------------
    Follow my blog at http://saltnlight5.blogspot.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •