Clover coverage report - Code Coverage for tapestry release 4.0-alpha-3
Coverage timestamp: Mon May 16 2005 09:05:49 EDT
file stats: LOC: 78   Methods: 6
NCLOC: 43   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
RequestCycleEnvironment.java - 100% 100% 100%
coverage
 1   
 // Copyright 2005 The Apache Software Foundation
 2   
 //
 3   
 // Licensed under the Apache License, Version 2.0 (the "License");
 4   
 // you may not use this file except in compliance with the License.
 5   
 // You may obtain a copy of the License at
 6   
 //
 7   
 //     http://www.apache.org/licenses/LICENSE-2.0
 8   
 //
 9   
 // Unless required by applicable law or agreed to in writing, software
 10   
 // distributed under the License is distributed on an "AS IS" BASIS,
 11   
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12   
 // See the License for the specific language governing permissions and
 13   
 // limitations under the License.
 14   
 
 15   
 package org.apache.tapestry.engine;
 16   
 
 17   
 import org.apache.hivemind.ErrorHandler;
 18   
 import org.apache.tapestry.record.PropertyPersistenceStrategySource;
 19   
 import org.apache.tapestry.request.RequestContext;
 20   
 import org.apache.tapestry.services.AbsoluteURLBuilder;
 21   
 import org.apache.tapestry.services.Infrastructure;
 22   
 
 23   
 /**
 24   
  * An object that contains all the invariant parameters to the
 25   
  * {@link org.apache.tapestry.engine.RequestCycle#RequestCycle(IEngine, QueryParameterMap, IEngineService, IMonitor, RequestCycleEnvironment)}
 26   
  * constructor.
 27   
  * 
 28   
  * @author Howard M. Lewis Ship
 29   
  * @since 4.0
 30   
  */
 31   
 public class RequestCycleEnvironment
 32   
 {
 33   
     private Infrastructure _infrastructure;
 34   
 
 35   
     private PropertyPersistenceStrategySource _strategySource;
 36   
 
 37   
     private AbsoluteURLBuilder _absoluteURLBuilder;
 38   
 
 39   
     private ErrorHandler _errorHandler;
 40   
 
 41   
     private RequestContext _requestContext;
 42   
 
 43  47
     public RequestCycleEnvironment(ErrorHandler errorHandler, Infrastructure infrastructure,
 44   
             RequestContext requestContext, PropertyPersistenceStrategySource strategySource,
 45   
             AbsoluteURLBuilder absoluteURLBuilder)
 46   
     {
 47  47
         _errorHandler = errorHandler;
 48  47
         _infrastructure = infrastructure;
 49  47
         _requestContext = requestContext;
 50  47
         _strategySource = strategySource;
 51  47
         _absoluteURLBuilder = absoluteURLBuilder;
 52   
     }
 53   
 
 54  150
     public AbsoluteURLBuilder getAbsoluteURLBuilder()
 55   
     {
 56  150
         return _absoluteURLBuilder;
 57   
     }
 58   
 
 59  150
     public ErrorHandler getErrorHandler()
 60   
     {
 61  150
         return _errorHandler;
 62   
     }
 63   
 
 64  150
     public Infrastructure getInfrastructure()
 65   
     {
 66  150
         return _infrastructure;
 67   
     }
 68   
 
 69  150
     public PropertyPersistenceStrategySource getStrategySource()
 70   
     {
 71  150
         return _strategySource;
 72   
     }
 73   
 
 74  150
     public RequestContext getRequestContext()
 75   
     {
 76  150
         return _requestContext;
 77   
     }
 78   
 }