Project

General

Profile

1
package eu.dnetlib.enabling.is.sn;
2

    
3

    
4
/**
5
 * NotificationSender interface defines an injection point for the NotificationInvoker instance.
6
 * 
7
 * <p>
8
 * It will be fairly common for implementors of NotificationSender to back the invoker reference into an instance
9
 * variable. This abstract class offers this for free. </p>
10
 * 
11
 * @author marko
12
 * 
13
 */
14
public abstract class AbstractNotificationSender implements NotificationSender {
15

    
16
	/**
17
	 * notification invoker used to send messages to destinations.
18
	 */
19
	private NotificationInvoker invoker;
20

    
21
	public NotificationInvoker getInvoker() {
22
		return invoker;
23
	}
24

    
25
	@Override
26
	public void setInvoker(final NotificationInvoker invoker) {
27
		this.invoker = invoker;
28
	}
29

    
30
}
(2-2/23)