2009/05/20 - Apache Shale has been retired.

For more information, please explore the Attic.

Coverage Report - org.apache.shale.examples.test.view.Standard
 
Classes in this File Line Coverage Branch Coverage Complexity
Standard
0%
0/19
N/A
1
 
 1  
 /*
 2  
  * Licensed to the Apache Software Foundation (ASF) under one or more
 3  
  * contributor license agreements.  See the NOTICE file distributed with
 4  
  * this work for additional information regarding copyright ownership.
 5  
  * The ASF licenses this file to you under the Apache License, Version 2.0
 6  
  * (the "License"); you may not use this file except in compliance with
 7  
  * the License.  You may obtain a copy of the License at
 8  
  *
 9  
  *      http://www.apache.org/licenses/LICENSE-2.0
 10  
  *
 11  
  * Unless required by applicable law or agreed to in writing, software
 12  
  * distributed under the License is distributed on an "AS IS" BASIS,
 13  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 14  
  * See the License for the specific language governing permissions and
 15  
  * limitations under the License.
 16  
  *
 17  
  * $Id: Standard.java 464373 2006-10-16 04:21:54Z rahul $
 18  
  */
 19  
 
 20  
 package org.apache.shale.examples.test.view;
 21  
 
 22  
 import javax.faces.context.FacesContext;
 23  
 import org.apache.shale.view.AbstractViewController;
 24  
 import org.apache.shale.view.faces.FacesConstants;
 25  
 
 26  
 /**
 27  
  * <p>View Controller class for <code>/standard.jsp</code>.
 28  
  * This class implements the <code>ViewController</code> interface,
 29  
  * so it should receive lifecycle event callbacks.</p>
 30  
  */
 31  0
 public class Standard extends AbstractViewController {
 32  
     
 33  
 
 34  
     // ------------------------------------------------------ Instance Variables
 35  
 
 36  
 
 37  
     /**
 38  
      * <p>Sequence number for identifying order of event callbacks.</p>
 39  
      */
 40  0
     private int sequence = 0;
 41  
 
 42  
 
 43  
     // -------------------------------------------------------------- Properties
 44  
 
 45  
 
 46  
     /**
 47  
      * <p>Calling order for the init() method.</p>
 48  
      */
 49  0
     private int initCalled = 0;
 50  
 
 51  
     public int getInitCalled() {
 52  0
         return initCalled;
 53  
     }
 54  
 
 55  
 
 56  
     /**
 57  
      * <p>Calling order for the preprocess() method.</p>
 58  
      */
 59  0
     private int preprocessCalled = 0;
 60  
 
 61  
     public int getPreprocessCalled() {
 62  0
         return preprocessCalled;
 63  
     }
 64  
 
 65  
 
 66  
     /**
 67  
      * <p>Calling order for the prerender() method.</p>
 68  
      */
 69  0
     private int prerenderCalled = 0;
 70  
 
 71  
     public int getPrerenderCalled() {
 72  0
         return prerenderCalled;
 73  
     }
 74  
 
 75  
 
 76  
     /**
 77  
      * <p>Calling order for the destroy() method.</p>
 78  
      */
 79  0
     private int destroyCalled = 0;
 80  
 
 81  
     public int getDestroyCalled() {
 82  0
         return destroyCalled;
 83  
     }
 84  
 
 85  
 
 86  
     // -------------------------------------------------------- Lifecycle Events
 87  
 
 88  
 
 89  
     // Record the order in which each event was called
 90  
 
 91  
     public void init() {
 92  0
         initCalled = ++sequence;
 93  0
     }
 94  
 
 95  
     public void preprocess() {
 96  0
         preprocessCalled = ++sequence;
 97  0
     }
 98  
 
 99  
     public void prerender() {
 100  0
         prerenderCalled = ++sequence;
 101  0
     }
 102  
 
 103  
     public void destroy() {
 104  0
         destroyCalled = ++sequence;
 105  0
     }
 106  
 
 107  
 
 108  
     // ------------------------------------------------------------- View Events
 109  
 
 110  
 
 111  
     // Process a click on the resubmit link
 112  
     public String resubmit() {
 113  0
         return null;
 114  
     }
 115  
 
 116  
 
 117  
 }