ImplementedBy

This annotation focuses on a class object that gives an implementation to the interface. For example, in case the NotificationService interface has numerous usages, and in case we wish to have SMSService as the default implementationat that point we can  code as follows:

@ImplementedBy(SMSService.class)
public interface NotificationService{
    boolean sendNotification(String message, String recipient);
}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.14.82.217