All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.shale.view.AbstractApplicationBean Maven / Gradle / Ivy

The newest version!
/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to you under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.shale.view;

/**
 * 

AbstractApplicationBean is the abstract base class for * data bean(s) that are stored in application scope attributes. It extends * {@link AbstractFacesBean}, so it inherits all of the default behavior * found there. In addition, the following lifecycle methods are called * automatically when the corresponding events occur:

*
    *
  • init() - Called when this bean is initially added as an * application scope attribute (typically as the result of * evaluating a value binding or method binding expression).
  • *
  • destroy() - Called when the bean is removed from the * application attributes (typically as a result of the application * being shut down by the servlet container).
  • *
* * $Id: AbstractApplicationBean.java 464373 2006-10-16 04:21:54Z rahul $ */ public abstract class AbstractApplicationBean extends AbstractFacesBean { // ------------------------------------------------------------- Constructor /** *

Create a new application scope bean.

*/ public AbstractApplicationBean() { } // ------------------------------------------------------- Lifecycle Methods /** *

This method is called when this bean is initially added to * application scope. Typically, this occurs as a result of evaluating * a value binding or method binding expression, which utilizes the * managed bean facility to instantiate this bean and store it into * application scope.

* *

You may customize this method to initialize and cache application wide * data values (such as the lists of valid options for dropdown list * components), or to allocate resources that are required for the * lifetime of the application.

*/ public void init() { // The default implementation does nothing } /** *

This method is called when this bean is removed from * application scope. Typically, this occurs as a result of * the application being shut down by its owning container.

* *

You may customize this method to clean up resources allocated * during the execution of the init() method, or * at any later time during the lifetime of the application.

*/ public void destroy() { // The default implementation does nothing } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy