2009/05/20 - Apache Shale has been retired.
For more information, please explore the Attic.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.shale.tiger.view.faces;
19
20 import org.apache.shale.tiger.view.Application;
21 import org.apache.shale.tiger.view.Destroy;
22 import org.apache.shale.tiger.view.Init;
23
24 /***
25 * <p>Test bean that does not subclass <code>AbstractApplicationBean</code>,
26 * but uses corresponding annotations, so that we can test callback events.</p>
27 */
28 @Application
29 public class ApplicationBean2 {
30
31
32 private StringBuffer sb = new StringBuffer();
33
34
35
36
37
38 @Init
39 public void doInit() {
40 sb.append("init/");
41 }
42
43
44 @Destroy
45 public void doDestroy() {
46 sb.append("destroy/");
47 }
48
49
50
51
52
53 public String log() {
54 return sb.toString();
55 }
56
57
58 }