When Spring loads the application context, it creates the beans following its own particular order. Irrespective of the order in which it creates the beans, it makes sure that a bean’s dependency (which are other beans) are set before the beans is ready of use. Below code will give you an example of what I am…… Continue reading Spring depends-on attribute
Category: Spring Framework
Setter injection example with more than one argument (@Autowired)
In this post under Spring core, I explains how to instruct Spring framework to call a setter method (which take more than one argument) while creating a bean. In most of the cases, the setter methods of a class takes only one argument but if a case arises where a setter method has to take…… Continue reading Setter injection example with more than one argument (@Autowired)
Serialization of objects
This post explains how java objects can be serialized or deserialized in Spring framework Spring framework provides two interfaces and their default implementations as mentioned below Interfaces 1) Serializer 2) Deserializer Default Implementations 1) DefaultSerializer 2) DefaultDeserializer The default implementations internally uses java serialization to provide the serialization feature. In other words these implementations act…… Continue reading Serialization of objects