SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Feb 2010
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Why Spring is called As light Weight Component

    Hi all,
    can any one explain about why spring is called as Light weight component.
    Thanks in advance.

  2. #2
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    "Lightweight" is one of those overloaded terms that can mean a lot of different things.

    In Spring’s case—and please keep in mind that I am not a Spring expert—“lightweight” seems to mean a departure from the configuration/boilerplate-heavy style of previous Java web development frameworks.

    Frameworks like Struts 1 involved writing lots of XML configuration files, classes full of “do nothing” code, and a complex directory structure for packaging applications. Spring, on the other hand, does its best to save you from having to repeat yourself in your code, and relies on naming conventions to reduce the number of configuration files needed to hook things together.

    In theory, this reduction in code complexity will also come with improved performance, because applications are “lighter”—thus the term “lightweight.”

    Someone, please, correct me if I’m wrong.
    Kevin Yank
    CTO, sitepoint.com
    I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
    Baby’s got back—a hard back, that is: The Ultimate CSS Reference

  3. #3
    SiteP0int Weazle hooknc's Avatar
    Join Date
    Dec 2004
    Location
    Socialist Republic of Boulder
    Posts
    937
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Don't forget that Spring's main purpose was to introduce Dependency Injection for objects.

    Meaning now, that your objects do not need to know how to go get their collaborators, the collaborators are just set on your objects via Spring.

    BTW, all that naming convention stuff for spring and its MVC framework is not as easy as it sounds... to debug. When something goes wrong, it can be quite hard to figure out what is the culprit.
    baby steps... baby steps...

  4. #4
    SitePoint Enthusiast
    Join Date
    Jul 2008
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe because in the beginning it was lightweight... Then it grew, it grew and continues to grow.

  5. #5
    SitePoint Wizard
    Join Date
    Apr 2007
    Posts
    1,401
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I have used Spring for years and I don't quite get why it would be called "lightweight" components. As hooknc said, Dependency Injection is what makes Spring very popular! It helps the coders to write less and make it more flexible and etc... In the core of Spring, it acts as an "Integrator" among different library implementations. Of course, it has other things like Spring MVC, Spring Web Flow, Spring AOP, and etc... and they have nothing to do w/ the concept of "lightweight".... Honestly, like you I truly don't understand what they mean by "lightweight". But, from my understand is that if you use J2EE stack then it's considered "heavy weight" because you have to take all or nothing approach. "lightweight" seems like you can pick and choose the components you want to use..therefore it's "light weight"... Maybe that's what it is or not.. In any case, Spring is awesome!!!!!!!!!!!!!!!!!!!!!!!!!!!!


Bookmarks

Posting Permissions

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