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

For more information, please explore the Attic.

Coverage Report - org.apache.shale.examples.test.tiger.Nonview3
 
Classes in this File Line Coverage Branch Coverage Complexity
Nonview3
0%
0/19
N/A
0
 
 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: Nonview3.java 489925 2006-12-23 20:51:40Z craigmcc $
 18  
  */
 19  
 
 20  
 package org.apache.shale.examples.test.tiger;
 21  
 
 22  
 import org.apache.shale.tiger.managed.Bean;
 23  
 import org.apache.shale.tiger.managed.Property;
 24  
 import org.apache.shale.tiger.managed.Scope;
 25  
 import org.apache.shale.tiger.view.Destroy;
 26  
 import org.apache.shale.tiger.view.Init;
 27  
 import org.apache.shale.tiger.view.Preprocess;
 28  
 import org.apache.shale.tiger.view.Prerender;
 29  
 import org.apache.shale.tiger.view.View;
 30  
 
 31  
 /**
 32  
  * <p>First page for non-ViewController event tests.  This is different from
 33  
  * the use case tested by Nonview1 and Nonview2, because Nonview4 will not be
 34  
  * registered with a ViewControllerMapper compatible name.</p>
 35  
  */
 36  
 @Bean(name="nonview3", scope=Scope.REQUEST) @View
 37  
 public class Nonview3 {
 38  
     
 39  
 
 40  
     // ------------------------------------------------------------- Constructor
 41  
 
 42  
 
 43  
     /** Construct an uninitialized instance. */
 44  0
     public Nonview3() {
 45  0
         System.out.println("Nonview3.constructor()");
 46  0
     }
 47  
 
 48  
 
 49  
     // -------------------------------------------------------------- Properties
 50  
 
 51  
 
 52  
     // The "Recorder" object for this request
 53  
     @Property(value="#{recorder}")
 54  0
     private Recorder recorder = null;
 55  
     public Recorder getRecorder() {
 56  0
         return this.recorder;
 57  
     }
 58  
     public void setRecorder(Recorder recorder) {
 59  0
         this.recorder = recorder;
 60  0
     }
 61  
 
 62  
 
 63  
     // ------------------------------------------------------- Lifecycle Methods
 64  
 
 65  
 
 66  
     /**
 67  
      * <p>Record an init event.</p>
 68  
      */
 69  
     @Init
 70  
     public void init() {
 71  0
         getRecorder().record("init3");
 72  0
         System.out.println("Nonview3.init()");
 73  0
     }
 74  
 
 75  
 
 76  
     /**
 77  
      * <p>Record a preprocess event.</p>
 78  
      */
 79  
     @Preprocess
 80  
     public void preprocess() {
 81  0
         getRecorder().record("preprocess3");
 82  0
         System.out.println("Nonview3.preprocess()");
 83  0
     }
 84  
 
 85  
 
 86  
     /**
 87  
      * <p>Record a prerender event.</p>
 88  
      */
 89  
     @Prerender
 90  
     public void prerender() {
 91  0
         getRecorder().record("prerender3");
 92  0
         System.out.println("Nonview3.prerender()");
 93  0
     }
 94  
 
 95  
 
 96  
     /**
 97  
      * <p>Record a destroy event.</p>
 98  
      */
 99  
     @Destroy
 100  
     public void destroy() {
 101  0
         getRecorder().record("destroy3");
 102  0
         System.out.println("Nonview3.destroy()");
 103  0
     }
 104  
 
 105  
 
 106  
 }