Clover coverage report - PicoContainer - 1.1
Coverage timestamp: Thu Nov 4 2004 11:55:45 CST
file stats: LOC: 68   Methods: 8
NCLOC: 40   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
DecoratingComponentAdapter.java - 61.5% 87.5% 71.4%
coverage coverage
 1   
 /*****************************************************************************
 2   
  * Copyright (C) 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.txt file.                                                     *
 7   
  *                                                                           *
 8   
  * Original code by Jon Tirsen                                               *
 9   
  *****************************************************************************/
 10   
 
 11   
 package org.picocontainer.defaults;
 12   
 
 13   
 import org.picocontainer.ComponentAdapter;
 14   
 import org.picocontainer.PicoContainer;
 15   
 import org.picocontainer.PicoInitializationException;
 16   
 import org.picocontainer.PicoIntrospectionException;
 17   
 import org.picocontainer.PicoVerificationException;
 18   
 import org.picocontainer.PicoVisitor;
 19   
 
 20   
 import java.io.Serializable;
 21   
 
 22   
 /**
 23   
  * @author Jon Tirsen (tirsen@codehaus.org)
 24   
  * @author Aslak Hellesoy
 25   
  * @version $Revision: 1.11 $
 26   
  */
 27   
 public class DecoratingComponentAdapter implements ComponentAdapter, Serializable {
 28   
 
 29   
     private ComponentAdapter delegate;
 30   
 
 31  1266
     public DecoratingComponentAdapter(ComponentAdapter delegate) {
 32  1266
         this.delegate = delegate;
 33   
     }
 34   
 
 35  3788
     public Object getComponentKey() {
 36  3788
         return delegate.getComponentKey();
 37   
     }
 38   
 
 39  3876
     public Class getComponentImplementation() {
 40  3876
         return delegate.getComponentImplementation();
 41   
     }
 42   
 
 43  878
     public Object getComponentInstance(PicoContainer container) throws PicoInitializationException, PicoIntrospectionException {
 44  878
         return delegate.getComponentInstance(container);
 45   
     }
 46   
 
 47  78
     public void verify(PicoContainer container) throws PicoVerificationException {
 48  78
         delegate.verify(container);
 49   
     }
 50   
 
 51  288
     public ComponentAdapter getDelegate() {
 52  288
         return delegate;
 53   
     }
 54   
 
 55  422
     public void accept(PicoVisitor visitor) {
 56  422
         visitor.visitComponentAdapter(this);
 57  422
         delegate.accept(visitor);
 58   
     }
 59   
 
 60  0
     public String toString() {
 61  0
         StringBuffer buffer = new StringBuffer(this.getClass().getName());
 62  0
         buffer.append("[");
 63  0
         buffer.append(delegate.toString());
 64  0
         buffer.append("]");
 65  0
         return buffer.toString();
 66   
     }
 67   
 }
 68