tag:blogger.com,1999:blog-8712770457197348465.post6985766058546034822..comments2024-03-18T23:01:42.768-07:00Comments on Javarevisited: Inversion of Control and Dependency Injection design pattern with real world Example - Spring tutorialjavin paulhttp://www.blogger.com/profile/15028902221295732276noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-8712770457197348465.post-80825631659206743422024-01-27T07:00:28.866-08:002024-01-27T07:00:28.866-08:00For some reason this website was blocking up to 30...For some reason this website was blocking up to 30% of my processor! Otherwise, I found it pretty useful.javaUserhttps://www.blogger.com/profile/02613909823957550440noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-11953277616571950622020-04-09T05:31:54.450-07:002020-04-09T05:31:54.450-07:00Thanks @Unknown, Happy that you find it useful. Thanks @Unknown, Happy that you find it useful. javin paulhttps://www.blogger.com/profile/15028902221295732276noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-55854900314560125182020-04-07T06:00:08.240-07:002020-04-07T06:00:08.240-07:00I was looking for proper example of ioc and di.Fin...I was looking for proper example of ioc and di.Finally I have found here. Great explanation. Anonymoushttps://www.blogger.com/profile/05132644130979638861noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-60849232527065201932019-03-31T13:30:27.376-07:002019-03-31T13:30:27.376-07:00I have been looking for example of DI and IoC for ...I have been looking for example of DI and IoC for a while and haven't found any as clear as this one. Thanks for taking the time, very well explained.<br />One quick question, as in your example you are not using annotations, shouldn't we have to add an applicationContext.xml with a bean for the service and property to this bean for the DAO?Unknownhttps://www.blogger.com/profile/02654481617687126344noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-50337342432014264262018-01-21T20:59:20.727-08:002018-01-21T20:59:20.727-08:00Please give a good blog on Restful webservices wit...Please give a good blog on Restful webservices with programming. Anonymoushttps://www.blogger.com/profile/04582474268272799729noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-7123139617504863012017-09-22T11:42:02.513-07:002017-09-22T11:42:02.513-07:00//ICO , DI ,10 years back , this was they way:
pu...//ICO , DI ,10 years back , this was they way:<br /><br />public class AuditDAOImpl implements Audit{<br /><br /> //dependency<br /> AuditDAO auditDAO = null;<br /> //Control of the AuditDAO is with AuditDAOImpl because its creating the object<br /> public AuditDAOImpl () {<br /> this.auditDAO = new AuditDAO ();<br /> }<br />}<br /><br />Now with Spring 3,4 or latest Vaibhav Khatkehttp://www.iseebug.comnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-11669576443221661402017-04-05T04:30:19.639-07:002017-04-05T04:30:19.639-07:00One of the major advantages of dependency injectio...One of the major advantages of dependency injection is that it can make testing lots easier. Suppose you have an object which in its constructor does something like:<br /><br />public SomeClass() {<br /> myObject = Factory.getObject();<br />}Anonymoushttps://www.blogger.com/profile/03356446583340255405noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-31229560650213341152015-12-01T02:44:08.319-08:002015-12-01T02:44:08.319-08:00there is a small typo under the setAuditDao method...there is a small typo under the setAuditDao method,<br /><br />this.AuditDao -> this.auditDaoAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-74868462913081823072015-02-01T20:17:17.379-08:002015-02-01T20:17:17.379-08:00First you say "Inversion of Control is more g...First you say "Inversion of Control is more general concept and Dependency Injection is a concrete design pattern" and then you say "One of the implementation of DI is Inversion of Control (IOC)".<br /><br />Do you even proof read what you write. I find your other posts too full of silly mistakes. Ankithttps://www.blogger.com/profile/07833542443073089477noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-10847073091151803052014-07-26T11:26:43.729-07:002014-07-26T11:26:43.729-07:00As the name implies Inversion of control means now...As the name implies Inversion of control means now we have inverted the control of creating the object from our own using new operator to container or framework. Now it’s the responsibility of container to create object as required. We maintain one xml file where we configure our components, services, all the classes and their property. We just need to mention which service is needed by which Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-5570948224775264272014-03-03T23:11:40.600-08:002014-03-03T23:11:40.600-08:00DI is special case of IoC right ?
DI is special case of IoC right ?<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-74176164409587812152012-12-16T21:56:14.281-08:002012-12-16T21:56:14.281-08:00I was confused between Inversion of Control and De...I was confused between Inversion of Control and Dependency Injection and looking for exaxt deference between Inversion of Control and Dependency Injection. Your article explains it right for once and all. a Big ThanksIannoreply@blogger.com