KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > rakstar > dwr > Service2


1 package org.rakstar.dwr;
2
3 /**
4  * @dwr.create
5  * javascript = "AnotherService"
6  *
7  * @author rakstar
8  *
9  */

10 public class Service2 {
11
12     /**
13      * @dwr.include
14      * @return
15      */

16     public String JavaDoc testInclude() {
17         return "Success! This method is on the white list!";
18     }
19     
20     /**
21      * @dwr.include
22      * @return
23      */

24     public String JavaDoc testIncludeMeToo() {
25         return "Success! This method is also on the white list!";
26     }
27
28     /**
29      * @return
30      */

31     public String JavaDoc notIncluded1() {
32         return "This should not be included.";
33     }
34
35     /**
36      * @return
37      */

38     public String JavaDoc notIncluded2() {
39         return "This too should not be included.";
40     }
41
42     
43 }
44
Popular Tags