001: /*
002: * BEGIN_HEADER - DO NOT EDIT
003: *
004: * The contents of this file are subject to the terms
005: * of the Common Development and Distribution License
006: * (the "License"). You may not use this file except
007: * in compliance with the License.
008: *
009: * You can obtain a copy of the license at
010: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
011: * See the License for the specific language governing
012: * permissions and limitations under the License.
013: *
014: * When distributing Covered Code, include this CDDL
015: * HEADER in each file and include the License file at
016: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
017: * If applicable add the following below this CDDL HEADER,
018: * with the fields enclosed by brackets "[]" replaced with
019: * your own identifying information: Portions Copyright
020: * [year] [name of copyright owner]
021: */
022:
023: /*
024: * @(#)SessionBean1.java
025: * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
026: *
027: * END_HEADER - DO NOT EDIT
028: */
029: package org.openesb.tools.charting;
030:
031: import com.sun.rave.web.ui.appbase.AbstractSessionBean;
032: import javax.faces.FacesException;
033:
034: /**
035: * <p>Session scope data bean for your application. Create properties
036: * here to represent cached data that should be made available across
037: * multiple HTTP requests for an individual user.</p>
038: *
039: * <p>An instance of this class will be created for you automatically,
040: * the first time your application evaluates a value binding expression
041: * or method binding expression that references a managed bean using
042: * this class.</p>
043: */
044: public class SessionBean1 extends AbstractSessionBean {
045: // <editor-fold defaultstate="collapsed" desc="Managed Component Definition">
046: private int __placeholder;
047:
048: /**
049: * <p>Automatically managed component initialization. <strong>WARNING:</strong>
050: * This method is automatically generated, so any user-specified code inserted
051: * here is subject to being replaced.</p>
052: */
053: private void _init() throws Exception {
054: }
055:
056: // </editor-fold>
057:
058: /**
059: * <p>Construct a new session data bean instance.</p>
060: */
061: public SessionBean1() {
062: }
063:
064: /**
065: * <p>This method is called when this bean is initially added to
066: * session scope. Typically, this occurs as a result of evaluating
067: * a value binding or method binding expression, which utilizes the
068: * managed bean facility to instantiate this bean and store it into
069: * session scope.</p>
070: *
071: * <p>You may customize this method to initialize and cache data values
072: * or resources that are required for the lifetime of a particular
073: * user session.</p>
074: */
075: public void init() {
076: // Perform initializations inherited from our superclass
077: super .init();
078: // Perform application initialization that must complete
079: // *before* managed components are initialized
080: // TODO - add your own initialiation code here
081:
082: // <editor-fold defaultstate="collapsed" desc="Managed Component Initialization">
083: // Initialize automatically managed components
084: // *Note* - this logic should NOT be modified
085: try {
086: _init();
087: } catch (Exception e) {
088: log("SessionBean1 Initialization Failure", e);
089: throw e instanceof FacesException ? (FacesException) e
090: : new FacesException(e);
091: }
092:
093: // </editor-fold>
094: // Perform application initialization that must complete
095: // *after* managed components are initialized
096: // TODO - add your own initialization code here
097: }
098:
099: /**
100: * <p>This method is called when the session containing it is about to be
101: * passivated. Typically, this occurs in a distributed servlet container
102: * when the session is about to be transferred to a different
103: * container instance, after which the <code>activate()</code> method
104: * will be called to indicate that the transfer is complete.</p>
105: *
106: * <p>You may customize this method to release references to session data
107: * or resources that can not be serialized with the session itself.</p>
108: */
109: public void passivate() {
110: }
111:
112: /**
113: * <p>This method is called when the session containing it was
114: * reactivated.</p>
115: *
116: * <p>You may customize this method to reacquire references to session
117: * data or resources that could not be serialized with the
118: * session itself.</p>
119: */
120: public void activate() {
121: }
122:
123: /**
124: * <p>This method is called when this bean is removed from
125: * session scope. Typically, this occurs as a result of
126: * the session timing out or being terminated by the application.</p>
127: *
128: * <p>You may customize this method to clean up resources allocated
129: * during the execution of the <code>init()</code> method, or
130: * at any later time during the lifetime of the application.</p>
131: */
132: public void destroy() {
133: }
134:
135: /**
136: * <p>Return a reference to the scoped data bean.</p>
137: */
138: protected ApplicationBean1 getApplicationBean1() {
139: return (ApplicationBean1) getBean("ApplicationBean1");
140: }
141: }
|