Clover coverage report - Code Coverage for hivemind release 1.1-alpha-3
Coverage timestamp: Tue Mar 22 2005 09:10:26 EST
file stats: LOC: 94   Methods: 12
NCLOC: 57   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
RegistryImpl.java - 91.7% 91.7% 91.7%
coverage coverage
 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.hivemind.impl;
 16   
 
 17   
 import java.util.List;
 18   
 import java.util.Locale;
 19   
 
 20   
 import org.apache.hivemind.Location;
 21   
 import org.apache.hivemind.Registry;
 22   
 import org.apache.hivemind.internal.RegistryInfrastructure;
 23   
 
 24   
 /**
 25   
  * Implementation of {@link org.apache.hivemind.Registry}that delegates to an instance of
 26   
  * {@link org.apache.hivemind.internal.RegistryInfrastructure}.
 27   
  * 
 28   
  * @since 1.1
 29   
  */
 30   
 public class RegistryImpl implements Registry
 31   
 {
 32   
     private RegistryInfrastructure _infrastructure;
 33   
 
 34  108
     public RegistryImpl(RegistryInfrastructure infrastructure)
 35   
     {
 36  108
         _infrastructure = infrastructure;
 37   
     }
 38   
 
 39  2
     public boolean containsConfiguration(String configurationId)
 40   
     {
 41  2
         return _infrastructure.containsConfiguration(configurationId, null);
 42   
     }
 43   
 
 44  2
     public boolean containsService(Class serviceInterface)
 45   
     {
 46  2
         return _infrastructure.containsService(serviceInterface, null);
 47   
     }
 48   
 
 49  3
     public boolean containsService(String serviceId, Class serviceInterface)
 50   
     {
 51  3
         return _infrastructure.containsService(serviceId, serviceInterface, null);
 52   
     }
 53   
 
 54  36
     public List getConfiguration(String configurationId)
 55   
     {
 56  36
         return _infrastructure.getConfiguration(configurationId, null);
 57   
     }
 58   
 
 59  1
     public String expandSymbols(String input, Location location)
 60   
     {
 61  1
         return _infrastructure.expandSymbols(input, location);
 62   
     }
 63   
 
 64  67
     public Object getService(String serviceId, Class serviceInterface)
 65   
     {
 66  67
         return _infrastructure.getService(serviceId, serviceInterface, null);
 67   
     }
 68   
 
 69  9
     public Object getService(Class serviceInterface)
 70   
     {
 71  9
         return _infrastructure.getService(serviceInterface, null);
 72   
     }
 73   
 
 74  3
     public Locale getLocale()
 75   
     {
 76  3
         return _infrastructure.getLocale();
 77   
     }
 78   
 
 79  23
     public void shutdown()
 80   
     {
 81  23
         _infrastructure.shutdown();
 82   
     }
 83   
 
 84  803
     public void cleanupThread()
 85   
     {
 86  803
         _infrastructure.cleanupThread();
 87   
     }
 88   
 
 89  0
     public String valueForSymbol(String name)
 90   
     {
 91  0
         return _infrastructure.valueForSymbol(name);
 92   
     }
 93   
 
 94   
 }