GeeCON Prague 2014*
The moose likes Spring and the fly likes spring bean class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Spring
Bookmark "spring bean class" Watch "spring bean class" New topic
Author

spring bean class

Mathew Lee
Ranch Hand

Joined: Jun 08, 2009
Posts: 238
Hi,

While defining the beans in spring-config.xml I see the id and class, scope, constructor-arg, ref-bean, property-name, value etc attributes. What does the class represents. Also what other attributes represents.I am not clear on which attribute to use in which scenario and how to use. Also how to define for constructor injection, how to define for setter injection and how to inject other bean or custom object. Any ideas, suggestions, sample code. resources, links highly appreciated.Thanks in advance.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

Matt, your questions end up being to teach you how to do entire Spring. If you have a specific question ask it. But trying to explain the entirety of Spring would take a whole book to write. Wait there are lots of books out there on Spring. Or there is also the Spring documentation pages at www.springframework.org?

Or take the Core Spring class from SpringSource, it is a great class, and great instructors. Heck, you might even get me as your instructor.

Another good place, is STS Spring Tool Suite, in a spring config xml file, you can hit ctrl-space in a bean tag, and as you scroll through the tag's attributes and hold there, the javadocs appear on the side for you to read that has great explainations.

Good Luck

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
GeeCON Prague 2014
 
subject: spring bean class