org.picocontainer.defaults
Interface Swappable


public interface Swappable

Interface implemented by all proxy instances created by {@link ImplementationHidingComponentAdapter).

Version:
$Revision: 1.2 $
Author:
Aslak Hellesøy

Method Summary
 java.lang.Object __hotSwap(java.lang.Object newSubject)
          Swaps the subject behind the proxy with a new instance.
 

Method Detail

__hotSwap

public java.lang.Object __hotSwap(java.lang.Object newSubject)
Swaps the subject behind the proxy with a new instance. (The underscores in the method name are to reduce the risk of method name clashes with other interfaces).

Parameters:
newSubject - the new subject the proxy will delegate to.
Returns:
the old subject


Copyright © 2003-2004 Codehaus. All Rights Reserved.