September 02, 2017

Spring - Initializing a Spring Bean

In Spring, it's often necessary to run custom code during a bean's initialization—for example, to validate mandatory properties or establish initial connections. Spring offers several mechanisms to initialize beans after they’ve been injected with their properties.Read More
by Phee Jay

July 12, 2017

Spring - Lookup Method or Method Injection

Most common injection mechanisms used in Spring are Constructor and Property injections. In both the mechanisms, the injection happens only once during the initialization of the Bean. They also require a concrete method defined, e.g., a constructor method for constructor injections and a setter method for property injection.Read More
by Phee Jay