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

Active Object Pattern

Ever wondered how a file is attached to an e-mail in web-based mail applications such as Yahoo Mail, Gmail etc.? If you have been using Yahoo Mail for some years now, you might remember that not very long ago, when we used to add a file attachment to an e-mail, we had to keep waiting till the file was uploaded to the server. With the recent UI changes, when we attach a file, it gets added parallely while we perform other tasks on the UI. What has changed? The Active Object Pattern design pattern is working under the hood. If not implemented explicitly then the UI framework must be using it implicitly.

Topics: Java Active Object Pattern Multithreading 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.