Clover coverage report - PicoContainer - 1.0-alpha-2
Coverage timestamp: Thu Jul 10 2003 10:40:43 BST
file stats: LOC: 33   Methods: 0
NCLOC: 5   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
ComponentFactory.java - - - -
coverage
 1   
 /*****************************************************************************
 2   
  * Copyright (Cc) PicoContainer Organization. All rights reserved.            *
 3   
  * ------------------------------------------------------------------------- *
 4   
  * The software in this package is published under the terms of the BSD      *
 5   
  * style license a copy of which has been included with this distribution in *
 6   
  * the license.html file.                                                    *
 7   
  *                                                                           *
 8   
  * Idea by Rachel Davies, Original code by Aslak Hellesoy and Paul Hammant   *
 9   
  *****************************************************************************/
 10   
 
 11   
 package picocontainer;
 12   
 
 13   
 public interface ComponentFactory {
 14   
 
 15   
     /**
 16   
      * Create a component. Used by the internals of applicable PicoContainers
 17   
      * to instantiate a component.
 18   
      * @param componentType the type the component will be registered as.
 19   
      * @param componentImplementation concrete component class.
 20   
      * @param instanceDependencies The component instances the created component will depend on.
 21   
      * @return The component
 22   
      * @throws picocontainer.defaults.PicoInvocationTargetInitializationException If a problem creating the component.
 23   
      */
 24   
     Object createComponent(Class componentType, Class componentImplementation, Class[] dependencies, Object[] instanceDependencies) throws PicoInstantiationException, PicoIntrospectionException;
 25   
 
 26   
     /**
 27   
      * Return the types the componentImplementation component depends on.
 28   
      * @param componentImplementation concrete component class.
 29   
      * @return an array of dependent types.
 30   
      */
 31   
     Class[] getDependencies(Class componentImplementation) throws PicoIntrospectionException;
 32   
 }
 33