Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
Nonview3 |
|
| 1.0;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: Nonview3.java 489925 2006-12-23 20:51:40Z 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. This is different | |
26 | * from the use case represented by Nonview1 and Nonview2, because our | |
27 | * destination (Nonview4) will not be registered as a managed bean with | |
28 | * a ViewControllerMapper compatible name at all.</p> | |
29 | */ | |
30 | public class Nonview3 extends AbstractViewController { | |
31 | ||
32 | ||
33 | // ------------------------------------------------------------- Constructor | |
34 | ||
35 | ||
36 | /** Construct an uninitialized instance. */ | |
37 | 0 | public Nonview3() { |
38 | 0 | System.out.println("Nonview3.constructor()"); |
39 | 0 | } |
40 | ||
41 | ||
42 | // -------------------------------------------------------------- Properties | |
43 | ||
44 | ||
45 | // The "Recorder" object for this request | |
46 | 0 | private Recorder recorder = null; |
47 | public Recorder getRecorder() { | |
48 | 0 | return this.recorder; |
49 | } | |
50 | public void setRecorder(Recorder recorder) { | |
51 | 0 | this.recorder = recorder; |
52 | 0 | } |
53 | ||
54 | ||
55 | // ------------------------------------------------------- Lifecycle Methods | |
56 | ||
57 | ||
58 | /** | |
59 | * <p>Record an init event.</p> | |
60 | */ | |
61 | public void init() { | |
62 | 0 | getRecorder().record("init3"); |
63 | 0 | System.out.println("Nonview3.init()"); |
64 | 0 | } |
65 | ||
66 | ||
67 | /** | |
68 | * <p>Record a preprocess event.</p> | |
69 | */ | |
70 | public void preprocess() { | |
71 | 0 | getRecorder().record("preprocess3"); |
72 | 0 | System.out.println("Nonview3.preprocess()"); |
73 | 0 | } |
74 | ||
75 | ||
76 | /** | |
77 | * <p>Record a prerender event.</p> | |
78 | */ | |
79 | public void prerender() { | |
80 | 0 | getRecorder().record("prerender3"); |
81 | 0 | System.out.println("Nonview3.prerender()"); |
82 | 0 | } |
83 | ||
84 | ||
85 | /** | |
86 | * <p>Record a destroy event.</p> | |
87 | */ | |
88 | public void destroy() { | |
89 | 0 | getRecorder().record("destroy3"); |
90 | 0 | System.out.println("Nonview3.destroy()"); |
91 | 0 | } |
92 | ||
93 | ||
94 | } |