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.view;
19
20 /***
21 * <p><strong>AbstractApplicationBean</strong> is the abstract base class for
22 * data bean(s) that are stored in application scope attributes. It extends
23 * {@link AbstractFacesBean}, so it inherits all of the default behavior
24 * found there. In addition, the following lifecycle methods are called
25 * automatically when the corresponding events occur:</p>
26 * <ul>
27 * <li><code>init()</code> - Called when this bean is initially added as an
28 * application scope attribute (typically as the result of
29 * evaluating a value binding or method binding expression).</li>
30 * <li><code>destroy()</code> - Called when the bean is removed from the
31 * application attributes (typically as a result of the application
32 * being shut down by the servlet container).</li>
33 * </ul>
34 *
35 * $Id: AbstractApplicationBean.java 464373 2006-10-16 04:21:54Z rahul $
36 */
37 public abstract class AbstractApplicationBean extends AbstractFacesBean {
38
39
40
41
42
43 /***
44 * <p>Create a new application scope bean.</p>
45 */
46 public AbstractApplicationBean() {
47 }
48
49
50
51
52
53 /***
54 * <p>This method is called when this bean is initially added to
55 * application scope. Typically, this occurs as a result of evaluating
56 * a value binding or method binding expression, which utilizes the
57 * managed bean facility to instantiate this bean and store it into
58 * application scope.</p>
59 *
60 * <p>You may customize this method to initialize and cache application wide
61 * data values (such as the lists of valid options for dropdown list
62 * components), or to allocate resources that are required for the
63 * lifetime of the application.</p>
64 */
65 public void init() {
66
67
68
69 }
70
71
72 /***
73 * <p>This method is called when this bean is removed from
74 * application scope. Typically, this occurs as a result of
75 * the application being shut down by its owning container.</p>
76 *
77 * <p>You may customize this method to clean up resources allocated
78 * during the execution of the <code>init()</code> method, or
79 * at any later time during the lifetime of the application.</p>
80 */
81 public void destroy() {
82
83
84
85 }
86
87
88 }