Advertisement
Guest User

Untitled

a guest
Jul 7th, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. public interface NotificationService {
  2. public void sendNewProjectRequestNotificationToDesigners(String projectId);
  3. public void sendNewProjectAcceptedNotificationToCustomer(String projectId);
  4. public void sendNewProjectRejectedNotificationToCustomer(String projectId);
  5. ...
  6. // and aboud 30 more methods like that
  7. // specifying the type of notification and who is going to be sent to
  8. }
  9.  
  10. public interface NotificationSender {
  11. public void sendNotification(String projectId);
  12. }
  13.  
  14. public class NewProjectRequestNotificationSender implements NotificationSender {
  15. public void sendNotification(String projectId) {
  16. ...
  17. }
  18. }
  19.  
  20. // and many other classes, one for each method in the original interface
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement