Blog

Using inheritance can be a valuable time saver for your Spring Framework configurations. In Spring, a bean definition is the configuration information that we provide for beans. For example, bean definition can include property values and constructor arguments of the bean. Bean definition can also include container-specific information, such as init and destroy method settings, […]Continue reading

Introduction Spring provides a way to automatically detect the relationships between various beans. This can be done by declaring all the bean dependencies in Spring configuration file. So, Spring is able to utilize the BeanFactory to know the dependencies across all the used beans. Autowiring Modes Spring supports the following autowiring modes: 1. Autowiring ‘no’: […]Continue reading

In this post, I’ll explain how to work with resources in Spring using ResourceLoader. We’ll begin with a brief introduction about resources. Next, we’ll look at the Resource interface and some of its important methods. Finally, we’ll go through its implementations. Introduction: Working With Resources In Spring via ResourceLoader Frequently, we need to read external resources […]Continue reading

Spring Aware Interfaces allow you to hook into the inner workings of the Spring Framework. Though Spring Aware interfaces, you can access the Spring context, or Spring Bean life cycle events. Your Spring beans might require access to framework objects, such as ApplicationContext, BeanFactory, and ResourceLoader . To gain access, a bean can implement one […]Continue reading

In this article, we’ll to learn how to implement the service locator Design Pattern in Spring. We’ll begin with a brief introduction. Next, we’ll introduce an example that benefits from using the pattern. And finally, we’ll work through an implementation in Spring. Introduction: Service Locator Pattern When we begin working with the Spring framework, we run […]Continue reading