Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public interface NotificationService {
- public void sendNewProjectRequestNotificationToDesigners(String projectId);
- public void sendNewProjectAcceptedNotificationToCustomer(String projectId);
- public void sendNewProjectRejectedNotificationToCustomer(String projectId);
- ...
- // and aboud 30 more methods like that
- // specifying the type of notification and who is going to be sent to
- }
- public interface NotificationSender {
- public void sendNotification(String projectId);
- }
- public class NewProjectRequestNotificationSender implements NotificationSender {
- public void sendNotification(String projectId) {
- ...
- }
- }
- // and many other classes, one for each method in the original interface
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement