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: * @(#)RequestBean1.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.AbstractRequestBean;
032: import javax.faces.FacesException;
033:
034: /**
035: * <p>Request scope data bean for your application. Create properties
036: * here to represent data that should be made available across different
037: * pages in the same HTTP request, so that the page bean classes do not
038: * have to be directly linked to each other.</p>
039: *
040: * <p>An instance of this class will be created for you automatically,
041: * the first time your application evaluates a value binding expression
042: * or method binding expression that references a managed bean using
043: * this class.</p>
044: */
045: public class RequestBean1 extends AbstractRequestBean {
046: // <editor-fold defaultstate="collapsed" desc="Managed Component Definition">
047: private int __placeholder;
048:
049: /**
050: * <p>Automatically managed component initialization. <strong>WARNING:</strong>
051: * This method is automatically generated, so any user-specified code inserted
052: * here is subject to being replaced.</p>
053: */
054: private void _init() throws Exception {
055: }
056:
057: // </editor-fold>
058:
059: /**
060: * <p>Construct a new request data bean instance.</p>
061: */
062: public RequestBean1() {
063: }
064:
065: /**
066: * <p>This method is called when this bean is initially added to
067: * request scope. Typically, this occurs as a result of evaluating
068: * a value binding or method binding expression, which utilizes the
069: * managed bean facility to instantiate this bean and store it into
070: * request scope.</p>
071: *
072: * <p>You may customize this method to allocate resources that are required
073: * for the lifetime of the current request.</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("RequestBean1 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 this bean is removed from
101: * request scope. This occurs automatically when the corresponding
102: * HTTP response has been completed and sent to the client.</p>
103: *
104: * <p>You may customize this method to clean up resources allocated
105: * during the execution of the <code>init()</code> method, or
106: * at any later time during the lifetime of the request.</p>
107: */
108: public void destroy() {
109: }
110:
111: /**
112: * <p>Return a reference to the scoped data bean.</p>
113: */
114: protected SessionBean1 getSessionBean1() {
115: return (SessionBean1) getBean("SessionBean1");
116: }
117:
118: /**
119: * <p>Return a reference to the scoped data bean.</p>
120: */
121: protected ApplicationBean1 getApplicationBean1() {
122: return (ApplicationBean1) getBean("ApplicationBean1");
123: }
124: }
|