Results 1 to 1 of 1
-
How to decide whether to use Setter injection or constructor injection in your code
Spring Community generally offers setter injection as better choice but where no hard and fast rule. Setter Injection can be reconfigured or re injected is but constructor injection does not have this ability. But while dealing with third party classes where one does not have the source setter methods will not be exposed and programmer have to use constructor based injection.
Similar Threads
-
How to set the property of Bean by constructor injection
By Java Tip in forum Spring FrameworkReplies: 1Last Post: 05-05-2008, 09:01 AM -
How to use Setter Injection and Constructor Injection
By Java Tip in forum Java TipReplies: 0Last Post: 03-29-2008, 12:38 PM -
How to set the property of Bean by constructor injection
By JavaBean in forum Java TipReplies: 0Last Post: 10-04-2007, 09:18 PM -
How to decide whether to use Setter injection or constructor injection in your code
By JavaBean in forum Java TipReplies: 0Last Post: 09-26-2007, 08:29 PM -
How to use Setter injection and constructor injection
By JavaBean in forum Java TipReplies: 0Last Post: 09-26-2007, 08:28 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks