Coverage report

  %line %branch
org.apache.jetspeed.deployment.impl.DeploymentEventImpl
0% 
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  
 package org.apache.jetspeed.deployment.impl;
 18  
 
 19  
 import org.apache.jetspeed.deployment.DeploymentEvent;
 20  
 import org.apache.jetspeed.deployment.DeploymentObject;
 21  
 
 22  
 
 23  
 /**
 24  
  * <p>
 25  
  * DeploymentEventImpl
 26  
  * </p>
 27  
  * 
 28  
  * @author <a href="mailto:weaver@apache.org">Scott T. Weaver</a>
 29  
  * @version $Id: DeploymentEventImpl.java 517124 2007-03-12 08:10:25Z ate $
 30  
  *
 31  
  */
 32  
 public class DeploymentEventImpl implements DeploymentEvent
 33  
 {
 34  
 	private DeploymentObject handler;
 35  0
 	private int status = STATUS_EVAL;
 36  
 	protected String name;
 37  
 	protected String path;
 38  
 	
 39  
 
 40  
 	public DeploymentEventImpl(DeploymentObject handler)
 41  
 	{
 42  0
 		super();
 43  0
 		this.handler = handler;
 44  0
 		this.name = handler.getName();
 45  0
 		this.path = handler.getPath();
 46  0
 	}
 47  
 	
 48  
 	public DeploymentEventImpl(String name, String path)
 49  
 	{
 50  0
 		super();
 51  0
 		this.name = name;
 52  0
 		this.path = path;
 53  0
 	}
 54  
 
 55  
     /**
 56  
      * @see org.apache.jetspeed.deployment.DeploymentEvent#getDeploymentObject()
 57  
      */
 58  
     public DeploymentObject getDeploymentObject()
 59  
     {        
 60  0
         return handler;
 61  
     }
 62  
 
 63  
     /**
 64  
      * @return
 65  
      */
 66  
     public int getStatus()
 67  
     {
 68  0
         return status;
 69  
     }
 70  
 
 71  
     /**
 72  
      * @param i
 73  
      */
 74  
     public void setStatus(int i)
 75  
     {
 76  0
         status = i;
 77  0
     }
 78  
 
 79  
     /**
 80  
      * <p>
 81  
      * getName
 82  
      * </p>
 83  
      *
 84  
      * @see org.apache.jetspeed.deployment.DeploymentEvent#getName()
 85  
      * @return
 86  
      */
 87  
     public String getName()
 88  
     {
 89  0
         return name;
 90  
     }
 91  
     /**
 92  
      * <p>
 93  
      * getPath
 94  
      * </p>
 95  
      *
 96  
      * @see org.apache.jetspeed.deployment.DeploymentEvent#getPath()
 97  
      * @return
 98  
      */
 99  
     public String getPath()
 100  
     {
 101  0
         return path;
 102  
     }
 103  
 }

This report is generated by jcoverage, Maven and Maven JCoverage Plugin.