How to handle additional parameters for different implementations of an interface in Java?
I am working on a Spring Boot project where I have a Notifier interface with a send(String message) method. Different implementations of Notifier, such as FCMNotifier and SNSNotifier, require additional parameters to send notifications (e.g., tokens, topics, etc.).
How to handle additional parameters for different implementations of an interface in Java?
I am working on a Spring Boot project where I have a Notifier interface with a send(String message) method. Different implementations of Notifier, such as FCMNotifier and SNSNotifier, require additional parameters to send notifications (e.g., tokens, topics, etc.).