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

For more information, please explore the Attic.

Coverage Report - org.apache.shale.examples.test.tiger.ApplicationBean
 
Classes in this File Line Coverage Branch Coverage Complexity
ApplicationBean
0%
0/9
N/A
0
 
 1  
 /*
 2  
  * ApplicationBean.java
 3  
  *
 4  
  * Created on August 13, 2006, 10:04 AM
 5  
  *
 6  
  * To change this template, choose Tools | Template Manager
 7  
  * and open the template in the editor.
 8  
  */
 9  
 
 10  
 package org.apache.shale.examples.test.tiger;
 11  
 
 12  
 import org.apache.shale.tiger.managed.Bean;
 13  
 import org.apache.shale.tiger.managed.Scope;
 14  
 import org.apache.shale.tiger.view.Application;
 15  
 import org.apache.shale.tiger.view.Destroy;
 16  
 import org.apache.shale.tiger.view.Init;
 17  
 
 18  
 /**
 19  
  * <p>Application scope managed bean declared with annotations.</p>
 20  
  */
 21  
 @Application
 22  
 @Bean(name="applicationBean", scope=Scope.APPLICATION)
 23  0
 public class ApplicationBean {
 24  
     
 25  
 
 26  
     // ------------------------------------------------------- Public Properties
 27  
 
 28  
 
 29  
     /**
 30  
      * <p>Return the events that have occurred so far.</p>
 31  
      */
 32  0
     private StringBuffer events = new StringBuffer();
 33  
 
 34  
     public String getEvents() {
 35  0
         return events.toString();
 36  
     }
 37  
 
 38  
 
 39  
 
 40  
     // -------------------------------------------------------- Lifecycle Events
 41  
 
 42  
 
 43  
     @Init
 44  
     public void myInit() {
 45  0
         events.append("init/");
 46  0
         System.out.println("ApplicationBean.init()");
 47  0
     }
 48  
 
 49  
 
 50  
     @Destroy
 51  
     public void myDestroy() {
 52  0
         events.append("destroy/");
 53  0
         System.out.println("ApplicationBean.destroy()");
 54  0
     }
 55  
 
 56  
 
 57  
 }