Clover coverage report - Code Coverage for hivemind-lib release 1.0-beta-2
Coverage timestamp: Sun Aug 1 2004 14:04:17 EDT
file stats: LOC: 49   Methods: 2
NCLOC: 22   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
PlaceholderFactory.java - 100% 100% 100%
coverage
 1   
 //  Copyright 2004 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.lib.impl;
 16   
 
 17   
 import java.util.List;
 18   
 
 19   
 import org.apache.hivemind.ServiceImplementationFactory;
 20   
 import org.apache.hivemind.impl.BaseLocatable;
 21   
 import org.apache.hivemind.internal.Module;
 22   
 import org.apache.hivemind.lib.DefaultImplementationBuilder;
 23   
 
 24   
 /**
 25   
  * Wrapper around {@link org.apache.hivemind.lib.DefaultImplementationBuilder} that is used
 26   
  * to create default implementations of services.
 27   
  *
 28   
  * @author Howard Lewis Ship
 29   
  */
 30   
 public class PlaceholderFactory extends BaseLocatable implements ServiceImplementationFactory
 31   
 {
 32   
     private DefaultImplementationBuilder _builder;
 33   
 
 34  2
     public Object createCoreServiceImplementation(
 35   
         String serviceId,
 36   
         Class serviceInterface,
 37   
         Module invokingModule,
 38   
         List parameters)
 39   
     {
 40  2
         return _builder.buildDefaultImplementation(serviceInterface, invokingModule);
 41   
     }
 42   
 
 43  2
     public void setBuilder(DefaultImplementationBuilder builder)
 44   
     {
 45  2
         _builder = builder;
 46   
     }
 47   
 
 48   
 }
 49