Skip to main content

All Questions

1 vote
2 answers
1k views

Using Factory Design Pattern in Rest Controller of Spring

I used factory design pattern to identify the service according to the enum that comes from the api uri as request param. Everything seems okay according to me but cannot be sure if I used it right. <...
Abdu Muhammadal's user avatar
3 votes
1 answer
866 views

Building an email generator using abstract factory pattern

I'm trying to build a customer email generator in java using the abstract factory pattern. I understand how to use the factory method pattern; however, I'm a bit confused about the abstract factory ...
rafiaTech's user avatar
  • 131
-3 votes
1 answer
53 views

Some way to create factory pattern for spring application [closed]

I created this code ...
Mateusz Sobczak's user avatar
2 votes
2 answers
985 views

Implementation of Abstract Factory pattern with different vendors for product

I am studying about design principles and design patterns. I have implemented an Abstract factory pattern as per my understanding. The scenario I have considered is as follows : There is an ...
Krishna Kumar's user avatar
3 votes
1 answer
1k views

Event Aggregator Pattern Decoupling

I have an Android application that is using an EventBus architecture with publishing and subscribing events. Usually this is ...
AndyRoid's user avatar
  • 293
3 votes
2 answers
984 views

Abstract factory pattern implemented in Java

I need a code review on my Abstract Factory pattern written in Java. Find the two enums AnimalType.java and DietType.java below. ...
Rahul Shivsharan's user avatar