Clover coverage report - PicoContainer - 1.0-RC-1
Coverage timestamp: Tue May 18 2004 16:19:33 EDT
file stats: LOC: 30   Methods: 0
NCLOC: 4   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
Swappable.java - - - -
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                                                          *
 9   
  *****************************************************************************/
 10   
 package org.picocontainer.defaults;
 11   
 
 12   
 /**
 13   
  * This interface is implemented by delegate proxies which support replacing the delegate object
 14   
  * behind that proxy with a different instance. It is implemented by all proxy instances created by
 15   
  * {@link ImplementationHidingComponentAdapter}. Please note that implementations of this method
 16   
  * are not guaranteed to be safe for concurrent use.
 17   
  *
 18   
  * @author Aslak Hellesøy
 19   
  * @version $Revision: 1.5 $
 20   
  */
 21   
 public interface Swappable {
 22   
     /**
 23   
      * Swaps the delegate behind the proxy with a new instance.
 24   
      * 
 25   
      * @param newDelegate the new delegate to which the proxy will defer calls.
 26   
      * @return the old delegate which has been replaced.
 27   
      */
 28   
     Object hotswap(Object newDelegate);
 29   
 }
 30