View Javadoc

1   package org.codehaus.xfire.service.object;
2   
3   import java.util.Collection;
4   
5   import org.codehaus.xfire.service.Service;
6   import org.codehaus.xfire.type.TypeMapping;
7   
8   /***
9    * A service which can map to an underlying Methods and Classes. Although, it
10   * doesn't necessarily need to map to one single object.
11   * 
12   * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a>
13   * @since Feb 18, 2004
14   */
15  public interface ObjectService
16      extends Service
17  {
18      public final static int SCOPE_APPLICATION = 1;
19  
20      public final static int SCOPE_SESSION = 2;
21  
22      public final static int SCOPE_REQUEST = 3;
23      
24      public static final String ALLOWED_METHODS = "allowedMethods";
25  
26      public static final String SERVICE_IMPL_CLASS = "xfire.serviceImplClass";
27  
28      /***
29       * The TypeMapping for this service.
30       * @return
31       */
32      TypeMapping getTypeMapping();
33  
34      /***
35       * Get an operation.
36       * @param name The name of the operation.
37       * @return
38       */
39      Operation getOperation(String name);
40  
41      /***
42       * Get all the operations for this service.
43       * @return
44       */
45      Collection getOperations();
46  
47      /***
48       * The class which the operations map to.
49       * @return
50       */
51      Class getServiceClass();
52  
53      int getScope();
54  }