Project

General

Profile

1
package eu.dnetlib.enabling.tools.registration;
2

    
3
import javax.xml.ws.Endpoint;
4

    
5
import org.springframework.beans.factory.annotation.Required;
6

    
7
import eu.dnetlib.enabling.tools.OpaqueResource;
8

    
9
/**
10
 * A service registration manager manages the registration of the service profile for a given service.
11
 * 
12
 * @author marko
13
 *
14
 */
15
public interface ServiceRegistrationManager {
16
	/**
17
	 * service to register.
18
	 * 
19
	 * @param service service instance
20
	 */
21
	@Required
22
	void setService(Object service);
23
	
24
	/**
25
	 * service endpoint.
26
	 * 
27
	 * @param endpoint service endpoint
28
	 */
29
	@Required
30
	void setEndpoint(Endpoint endpoint);
31
	
32
	/**
33
	 * set to true if we want to disable service registration.
34
	 * 
35
	 * @param disabled
36
	 */
37
	@Required
38
	void setDisabled(boolean disabled);
39
	
40
	/**
41
	 * returns the service profile associated with the service.
42
	 * 
43
	 * @return service profile
44
	 */
45
	OpaqueResource getServiceProfile();
46

    
47
	/**
48
	 * returns the registered service
49
	 *
50
	 * @return the service
51
	 */
52
	Object getService();
53

    
54
	
55
}
(5-5/8)