01: package de.schlund.pfixcore.webservice.annotation;
02:
03: import java.lang.annotation.*;
04:
05: /**
06: * @author mleidig@schlund.de
07: */
08: @Target({ElementType.TYPE})
09: @Retention(RetentionPolicy.RUNTIME)
10: public @interface Service {
11:
12: public enum Scope {
13: REQUEST, SESSION, APPLICATION
14: };
15:
16: public enum Protocol {
17: JSON
18: };
19:
20: String name();
21:
22: Scope scope() default Scope.APPLICATION;
23:
24: Protocol protocol() default Protocol.JSON;
25:
26: }
|