]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.databoard/src/org/simantics/databoard/channel/ServiceHandler.java
Improved Bindings.getBinding(Class) caching for Datatype.class
[simantics/platform.git] / bundles / org.simantics.databoard / src / org / simantics / databoard / channel / ServiceHandler.java
1 package org.simantics.databoard.channel;
2
3 import java.util.Collection;
4
5 /**
6  * Server interface of command channel. <p>
7  * 
8  * For each callable command there is a well-known commandId and datatype. <p>
9  *
10  * @author Toni Kalajainen <toni.kalajainen@iki.fi>
11  */
12 public interface ServiceHandler {
13
14         /**
15          * Handle service request from the client. The implementation may handle
16          * the service at once or later, even in another thread. The result is
17          * written to the asynchronous result object. <p>
18          * 
19          * @param request
20          */
21         void handleRequest( ServiceRequest request );
22         
23         /**
24          * Get all callable commands handled by this service handler.
25          * This result is list of command specifications. For each command there is
26          * unique identification, result type and error type.  
27          * 
28          * @return commands
29          */
30         Collection<CommandSpec> getCommands();
31         
32 }