Coverage Report - org.apache.tapestry.services.impl.ApplicationGlobalsImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
ApplicationGlobalsImpl
0%
0/17
N/A
1
 
 1  
 // Copyright 2004, 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.services.impl;
 16  
 
 17  
 import java.util.List;
 18  
 
 19  
 import javax.servlet.ServletContext;
 20  
 
 21  
 import org.apache.tapestry.services.ApplicationGlobals;
 22  
 import org.apache.tapestry.spec.IApplicationSpecification;
 23  
 import org.apache.tapestry.web.WebActivator;
 24  
 import org.apache.tapestry.web.WebContext;
 25  
 
 26  
 /**
 27  
  * Implementation of {@link ApplicationGlobals}.
 28  
  * 
 29  
  * @author Howard Lewis Ship
 30  
  * @since 4.0
 31  
  */
 32  0
 public class ApplicationGlobalsImpl implements ApplicationGlobals
 33  
 {
 34  
     private WebActivator _activator;
 35  
 
 36  
     private IApplicationSpecification _specification;
 37  
 
 38  
     private WebContext _webContext;
 39  
 
 40  
     private List _factoryServices;
 41  
 
 42  
     private ServletContext _servletContext;
 43  
 
 44  
     public void storeActivator(WebActivator activator)
 45  
     {
 46  0
         _activator = activator;
 47  0
     }
 48  
 
 49  
     public void storeSpecification(IApplicationSpecification applicationSpecification)
 50  
     {
 51  0
         _specification = applicationSpecification;
 52  0
     }
 53  
 
 54  
     public WebActivator getActivator()
 55  
     {
 56  0
         return _activator;
 57  
     }
 58  
 
 59  
     public IApplicationSpecification getSpecification()
 60  
     {
 61  0
         return _specification;
 62  
     }
 63  
 
 64  
     public String getActivatorName()
 65  
     {
 66  0
         return _activator.getActivatorName();
 67  
     }
 68  
 
 69  
     public WebContext getWebContext()
 70  
     {
 71  0
         return _webContext;
 72  
     }
 73  
 
 74  
     public void storeWebContext(WebContext context)
 75  
     {
 76  0
         _webContext = context;
 77  0
     }
 78  
 
 79  
     public void storeFactoryServices(List factoryServices)
 80  
     {
 81  0
         _factoryServices = factoryServices;
 82  0
     }
 83  
 
 84  
     public List getFactoryServices()
 85  
     {
 86  0
         return _factoryServices;
 87  
     }
 88  
 
 89  
     public ServletContext getServletContext()
 90  
     {
 91  0
         return _servletContext;
 92  
     }
 93  
 
 94  
     public void storeServletContext(ServletContext context)
 95  
     {
 96  0
         _servletContext = context;
 97  0
     }
 98  
 }