Blogs

Spring Singleton and Java Singleton Pattern

I thought of writing this blog while studying the difference between Singleton pattern and Spring Framework Singleton scope for Bean/POJO. As the default scope for Bean within Spring container is singleton, hence while using Spring's ApplicationContext and BeanFactory we will be getting a single instance to work with. Hence we may be using the Bean instance from the BeanFactory which is singleton in nature, but it is quite different from the Singleton Pattern.

Topics: Spring Framework singleton pattern Java Design Pattern Technology

e-Zest Solutions is digital experience engineering company with facilities in the United States (Detroit & San Jose), Germany (Hannover), United Kingdom (London UK) and India (Pune) with global clientele. Our services include custom software development, offshore software development, UX consulting, BigData, Managed cloud Services (Azure & AWS), SharePoint consulting/Migration, Enterprise Java application development, Automated software testing services.