Loading
AutoWire in Spring

Java Quick Notes

Refresh Your Java - Before Java Interview

We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....


Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet

Go to SiteMap

Q)  What is AutoWire in Spring ? What are the other possible values ?


Ans)

A BeanFactory is able to autowire relationships between collaborating beans. This means
it's possible to automatically let Spring resolve collaborators (other beans) for your
bean by inspecting the contents of the BeanFactory. The autowiring functionality has five modes.

No                  -  No autowiring at all. Bean references must be
                       defined via a ref element. This is the default.

byName              -  Autowiring by property name.
byType              -  Allows a property to be autowired if there
                       is exactly one bean of the property type in the BeanFactory.

Constructor        -  This is analogous to byType, but applies to constructor arguments.
Autodetect         -  Chooses constructor or byType through introspection of the bean class.



Back to top

------------------------- We hope you got necessary Info On -----------------------------------------

AutoWire in Spring


AutoWire in Spring

-------------------------------------------------------------------------------------------------------



Face Book
Request for a Mock Interview/Training

Get a PDF

Face Book
Same look (Read) on any device, this is Ads free