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: * @(#)ApplicationBean1.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.AbstractApplicationBean;
032: import javax.faces.FacesException;
033:
034: /**
035: * <p>Application scope data bean for your application. Create properties
036: * here to represent cached data that should be made available to all users
037: * and pages in the application.</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 ApplicationBean1 extends AbstractApplicationBean {
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 application data bean instance.</p>
060: */
061: public ApplicationBean1() {
062: }
063:
064: /**
065: * <p>This method is called when this bean is initially added to
066: * application 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: * application scope.</p>
070: *
071: * <p>You may customize this method to initialize and cache application wide
072: * data values (such as the lists of valid options for dropdown list
073: * components), or to allocate resources that are required for the
074: * lifetime of the application.</p>
075: */
076: public void init() {
077: // Perform initializations inherited from our superclass
078: super .init();
079: // Perform application initialization that must complete
080: // *before* managed components are initialized
081: // TODO - add your own initialiation code here
082:
083: // <editor-fold defaultstate="collapsed" desc="Managed Component Initialization">
084: // Initialize automatically managed components
085: // *Note* - this logic should NOT be modified
086: try {
087: _init();
088: } catch (Exception e) {
089: log("ApplicationBean1 Initialization Failure", e);
090: throw e instanceof FacesException ? (FacesException) e
091: : new FacesException(e);
092: }
093:
094: // </editor-fold>
095: // Perform application initialization that must complete
096: // *after* managed components are initialized
097: // TODO - add your own initialization code here
098: }
099:
100: /**
101: * <p>This method is called when this bean is removed from
102: * application scope. Typically, this occurs as a result of
103: * the application being shut down by its owning container.</p>
104: *
105: * <p>You may customize this method to clean up resources allocated
106: * during the execution of the <code>init()</code> method, or
107: * at any later time during the lifetime of the application.</p>
108: */
109: public void destroy() {
110: }
111:
112: /**
113: * <p>Return an appropriate character encoding based on the
114: * <code>Locale</code> defined for the current JavaServer Faces
115: * view. If no more suitable encoding can be found, return
116: * "UTF-8" as a general purpose default.</p>
117: *
118: * <p>The default implementation uses the implementation from
119: * our superclass, <code>AbstractApplicationBean</code>.</p>
120: */
121: public String getLocaleCharacterEncoding() {
122: return super.getLocaleCharacterEncoding();
123: }
124: }
|