1 |
26600
|
sandro.lab
|
package eu.dnetlib.enabling.is.sn;
|
2 |
|
|
|
3 |
|
|
/**
|
4 |
|
|
* NotificationDetector interface defines an injection point for the NotificationSender instance.
|
5 |
|
|
*
|
6 |
|
|
* <p>
|
7 |
|
|
* It will be fairly common for implementors of NotificatiorDetector to back the sender reference into an instance
|
8 |
|
|
* variable. This abstract class offers this for free.
|
9 |
|
|
* </p>
|
10 |
|
|
*
|
11 |
|
|
* @author marko
|
12 |
|
|
*
|
13 |
|
|
*/
|
14 |
|
|
public abstract class AbstractNotificationDetector implements NotificationDetector {
|
15 |
|
|
|
16 |
|
|
/**
|
17 |
|
|
* notification sender which will receive events triggered by this detector.
|
18 |
|
|
*/
|
19 |
|
|
private NotificationSender sender;
|
20 |
|
|
|
21 |
|
|
public NotificationSender getSender() {
|
22 |
|
|
return sender;
|
23 |
|
|
}
|
24 |
|
|
|
25 |
|
|
@Override
|
26 |
|
|
public void setSender(final NotificationSender sender) {
|
27 |
|
|
this.sender = sender;
|
28 |
|
|
}
|
29 |
|
|
|
30 |
|
|
}
|