View Javadoc

1   package org.codehaus.xfire.service;
2   
3   import java.util.Collection;
4   
5   import org.codehaus.xfire.service.event.RegistrationEventListener;
6   
7   /***
8    * The central place to register, unregister, and get information about 
9    * services.
10   * 
11   * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a>
12   * @since Feb 18, 2004
13   */
14  public interface ServiceRegistry
15  {
16  	final public static String ROLE = ServiceRegistry.class.getName();
17      
18  	Service getService( String serviceName );
19  
20      void register( Service service );
21      
22      void unregister( String serviceName );
23  
24  	boolean hasService(String service);
25  
26  	Collection getServices();
27      
28      void addRegistrationEventListener(RegistrationEventListener listener);
29      
30      void removeRegistrationEventListener(RegistrationEventListener listener);
31  }