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

For more information, please explore the Attic.

Coverage Report - org.apache.shale.examples.test.view.Nonview1
 
Classes in this File Line Coverage Branch Coverage Complexity
Nonview1
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: Nonview1.java 489557 2006-12-22 05:23:13Z craigmcc $
 18  
  */
 19  
 
 20  
 package org.apache.shale.examples.test.view;
 21  
 
 22  
 import org.apache.shale.view.AbstractViewController;
 23  
 
 24  
 /**
 25  
  * <p>First page for non-ViewController event tests.</p>
 26  
  */
 27  
 public class Nonview1 extends AbstractViewController {
 28  
     
 29  
 
 30  
     // ------------------------------------------------------------- Constructor
 31  
 
 32  
 
 33  
     /** Construct an uninitialized instance. */
 34  0
     public Nonview1() {
 35  0
         System.out.println("Nonview1.constructor()");
 36  0
     }
 37  
 
 38  
 
 39  
     // -------------------------------------------------------------- Properties
 40  
 
 41  
 
 42  
     // The "Recorder" object for this request
 43  0
     private Recorder recorder = null;
 44  
     public Recorder getRecorder() {
 45  0
         return this.recorder;
 46  
     }
 47  
     public void setRecorder(Recorder recorder) {
 48  0
         this.recorder = recorder;
 49  0
     }
 50  
 
 51  
 
 52  
     // ------------------------------------------------------- Lifecycle Methods
 53  
 
 54  
 
 55  
     /**
 56  
      * <p>Record an init event.</p>
 57  
      */
 58  
     public void init() {
 59  0
         getRecorder().record("init1");
 60  0
         System.out.println("Nonview1.init()");
 61  0
     }
 62  
 
 63  
 
 64  
     /**
 65  
      * <p>Record a preprocess event.</p>
 66  
      */
 67  
     public void preprocess() {
 68  0
         getRecorder().record("preprocess1");
 69  0
         System.out.println("Nonview1.preprocess()");
 70  0
     }
 71  
 
 72  
 
 73  
     /**
 74  
      * <p>Record a prerender event.</p>
 75  
      */
 76  
     public void prerender() {
 77  0
         getRecorder().record("prerender1");
 78  0
         System.out.println("Nonview1.prerender()");
 79  0
     }
 80  
 
 81  
 
 82  
     /**
 83  
      * <p>Record a destroy event.</p>
 84  
      */
 85  
     public void destroy() {
 86  0
         getRecorder().record("destroy1");
 87  0
         System.out.println("Nonview1.destroy()");
 88  0
     }
 89  
 
 90  
 
 91  
 }