Project

General

Profile

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

    
3
import eu.dnetlib.enabling.is.sn.NotificationDetector;
4

    
5
/**
6
 * Implementors detect topic assertions by sensing changes in resource state.
7
 * 
8
 * @author marko
9
 * @param <T>
10
 *            type of resource
11
 */
12
public interface ResourceStateNotificationDetector<T> extends NotificationDetector {
13
	/**
14
	 * called when a new resource is created.
15
	 * 
16
	 * @param newResource
17
	 *            new resource
18
	 */
19
	void resourceCreated(T newResource);
20

    
21
	/**
22
	 * called when a resource is modified.
23
	 * 
24
	 * @param oldResource
25
	 *            old resource
26
	 * @param newResource
27
	 *            new resource
28
	 */
29
	void resourceUpdated(T oldResource, T newResource);
30

    
31
	/**
32
	 * called when a resource is deleted.
33
	 * 
34
	 * @param oldResource
35
	 *            old resource
36
	 */
37
	void resourceDeleted(T oldResource);
38

    
39
}
(5-5/9)