01: /*
02: * ServiceRegistry.java
03: *
04: * Created on January 4, 2005, 3:54 PM
05: */
06:
07: package com.sun.portal.service.serviceregistry;
08:
09: import java.util.Collection;
10: import javax.servlet.http.HttpServletRequest;
11:
12: import com.sun.portal.service.Service;
13: import com.sun.portal.desktop.dp.DPChannel;
14:
15: /**
16: *
17: * @author mjain
18: */
19: public interface ServiceRegistry {
20:
21: public void init(HttpServletRequest request);
22:
23: public void init(String username, String password);
24:
25: Collection getServices() throws ServiceRegistryException;
26:
27: Service getService(String uniqueServiceID)
28: throws ServiceRegistryException;
29:
30: void addService(Service service) throws ServiceRegistryException;
31:
32: void removeService(String uniqueServiceID)
33: throws ServiceRegistryException;
34:
35: Service getService(DPChannel channel)
36: throws ServiceRegistryException;
37:
38: }
|