View Javadoc

1   /*
2    * $Id: IClientServiceRegistry.java,v 1.18 2011/06/16 09:29:41 jbmeslin Exp $
3    * 
4    */
5   package org.rcfaces.core.internal.service;
6   
7   import org.rcfaces.core.component.ServiceComponent;
8   import org.rcfaces.core.progressMonitor.IProgressMonitor;
9   
10  /**
11   * 
12   * @author Olivier Oeuillot (latest modification by $Author: jbmeslin $)
13   * @version $Revision: 1.18 $ $Date: 2011/06/16 09:29:41 $
14   */
15  public interface IClientServiceRegistry {
16  
17      int SYNC_MODE = 1;
18  
19      int ASYNC_MODE = 2;
20  
21      IClientService getClientServiceById(String requestId);
22  
23      IClientService createClientService(String requestId,
24              ServiceComponent component, Object parameter, int syncMode)
25              throws ClientServiceException;
26  
27      void startClientService(IClientService clientService);
28  
29      Object waitClientService(IClientService clientService,
30              IProgressMonitor progressMonitor);
31  
32      void releaseClientService(IClientService clientService);
33  }