Project

General

Profile

1
package eu.dnetlib.msro;
2

    
3
import javax.jws.WebService;
4

    
5
import org.apache.commons.logging.Log;
6
import org.apache.commons.logging.LogFactory;
7
import org.springframework.beans.factory.annotation.Required;
8

    
9
import eu.dnetlib.enabling.tools.AbstractBaseService;
10
import eu.dnetlib.enabling.tools.blackboard.NotificationHandler;
11
import eu.dnetlib.rmi.manager.MSROService;
12

    
13
@WebService(targetNamespace = "http://services.dnetlib.eu/")
14
public class MSROServiceImpl extends AbstractBaseService implements MSROService {
15

    
16
	/**
17
	 * logger.
18
	 */
19
	private static final Log log = LogFactory.getLog(MSROServiceImpl.class); // NOPMD by marko on 11/24/08 5:02 PM
20

    
21
	/**
22
	 * notification handler.
23
	 */
24
	private NotificationHandler notificationHandler;
25

    
26
	@Override
27
	public void notify(final String subscriptionId, final String topic, final String isId, final String message) {
28
		super.notify(subscriptionId, topic, isId, message);
29

    
30
		log.debug("got notification: " + topic);
31

    
32
		getNotificationHandler().notified(subscriptionId, topic, isId, message);
33
	}
34

    
35
	public NotificationHandler getNotificationHandler() {
36
		return this.notificationHandler;
37
	}
38

    
39
	@Required
40
	public void setNotificationHandler(final NotificationHandler notHandler) {
41
		this.notificationHandler = notHandler;
42
	}
43

    
44
}
    (1-1/1)