Coverage Report - org.apache.tapestry.engine.RequestCycleEnvironment
 
Classes in this File Line Coverage Branch Coverage Complexity
RequestCycleEnvironment
0%
0/10
N/A
1
 
 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.services.AbsoluteURLBuilder;
 20  
 import org.apache.tapestry.services.Infrastructure;
 21  
 
 22  
 /**
 23  
  * An object that contains all the invariant parameters to the
 24  
  * 
 25  
  * {@link RequestCycle#RequestCycle(org.apache.tapestry.IEngine, org.apache.tapestry.util.QueryParameterMap, String, RequestCycleEnvironment)}
 26  
  * constructor.
 27  
  * 
 28  
  * @author Howard M. Lewis Ship
 29  
  * @since 4.0
 30  
  */
 31  
 public class RequestCycleEnvironment
 32  
 {
 33  
     private final Infrastructure _infrastructure;
 34  
 
 35  
     private final PropertyPersistenceStrategySource _strategySource;
 36  
 
 37  
     private final AbsoluteURLBuilder _absoluteURLBuilder;
 38  
 
 39  
     private final ErrorHandler _errorHandler;
 40  
 
 41  
     public RequestCycleEnvironment(ErrorHandler errorHandler, Infrastructure infrastructure,
 42  
             PropertyPersistenceStrategySource strategySource, AbsoluteURLBuilder absoluteURLBuilder)
 43  0
     {
 44  0
         _errorHandler = errorHandler;
 45  0
         _infrastructure = infrastructure;
 46  0
         _strategySource = strategySource;
 47  0
         _absoluteURLBuilder = absoluteURLBuilder;
 48  0
     }
 49  
 
 50  
     public AbsoluteURLBuilder getAbsoluteURLBuilder()
 51  
     {
 52  0
         return _absoluteURLBuilder;
 53  
     }
 54  
 
 55  
     public ErrorHandler getErrorHandler()
 56  
     {
 57  0
         return _errorHandler;
 58  
     }
 59  
 
 60  
     public Infrastructure getInfrastructure()
 61  
     {
 62  0
         return _infrastructure;
 63  
     }
 64  
 
 65  
     public PropertyPersistenceStrategySource getStrategySource()
 66  
     {
 67  0
         return _strategySource;
 68  
     }
 69  
 }