Factory Pattern

It is a Creational Pattern as this pattern deals with the best ways to create an object. We are developing an application which has to get data from third party and display it in our website. Third party data could be in the form of Excel,text file or anything which can change later. Let’s create […]

Share this article on

Setter Dependency Injection with Array of String

In some scenarios, we may need to inject an array of strings to an object. Consider the example where Person has hobbies In this case, we can use Array of String which stores the hobbies Let us see the same in spring through Setter Dependency Injection Create a class called Person It contains 3 attributes […]

Share this article on
< Previous Next >