com.thoughtworks.proxy.toys.hotswap
Interface Swappable


public interface Swappable

Interface implemented by all proxy instances created by HotSwappingInvoker.

Since:
0.1
Author:
Aslak Hellesøy

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

Method Detail

hotswap

Object hotswap(Object newSubject)
Swaps the subject behind the proxy with a new instance.

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


Copyright © 2005-2010 Codehaus. All Rights Reserved.