01: package org.vraptor.annotations;
02:
03: import java.lang.annotation.Documented;
04: import java.lang.annotation.ElementType;
05: import java.lang.annotation.Retention;
06: import java.lang.annotation.RetentionPolicy;
07: import java.lang.annotation.Target;
08:
09: /**
10: *
11: * Marks a logic method to give permission to serialize its results
12: * for remote clients, like AJAX and XML consumers
13: *
14: * @author Paulo Silveira
15: *
16: */
17: @Target(ElementType.METHOD)
18: @Documented
19: @Retention(RetentionPolicy.RUNTIME)
20: public @interface Remotable {
21: /**
22: * How deep should the outjected results be serialized.
23: * It must be a positive value. Be sure to keep this
24: * value as low as possible. The default value is 4.
25: *
26: */
27: int depth() default 4;
28: }
|