Featured Post

Spring auto wiring

Hey

Today I am going to discuss about spring autowiring
This is really fanatastic feature

Autowiring has 5 parameters

No - no autowiring at all
ByName - autowiring by property name

ByType - there will be one bean of property type and that will be autowired
If more than one exception will be thrown here dependency-check is one attribute comes into pic
If there are no matching beans then nothing happens no property will be set if u don't want that then u can set above dependency-check property to objects so excepetion will be thrown

Constructor - analogous to byType

Autodetect - chooses constructor or by type for inspection

Sent from BlackBerry® on Airtel

Comments

Popular posts from this blog

[Inside AdSense] Understanding your eCPM (effective cost per thousand impress...