Observer Design pattern

Hello folks, This post is all about to the Observer Design pattern. There is common occurring problem where we need to define ” a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated...

Spring Bean Life Cycle

Good Evening Folks. Every Java developer knows that at the time of creation of any object if some initialization is required we keep in constructor. Example. Class Math{ Math(){ // initialization code } } When it comes to J2EE Technology like Servlet we can do same...

Spring static factory method

Good Evening Folks. Today we will deal with a situation where we need an Object in our Spring bean class which can not be created with normal spring bean configuration tag. Lets take a example where requirement is we need inject an object inside my spring bean and...