com.thoughtworks.proxy.toys.hotswap
Class HotSwapping<T>

java.lang.Object
  extended by com.thoughtworks.proxy.toys.hotswap.HotSwapping<T>

public class HotSwapping<T>
extends Object

Factory for proxy instances that allow to exchange the delegated instance. Every created proxy will implement Swappable, that is used for the hot swap operation.

Since:
0.1
Author:
Dan North, Aslak Hellesøy, Jörg Schaible, Conrad Benham, Paul Hammant
See Also:
com.thoughtworks.proxy.toys.hotswap

Nested Class Summary
static class HotSwapping.HotSwappingBuild<T>
           
static class HotSwapping.HotSwappingBuildOrMode<T>
           
static class HotSwapping.HotSwappingWith<T>
           
 
Method Summary
static
<T> HotSwapping.HotSwappingWith<T>
proxy(Class<T> type)
          Creates a factory for proxy instances that allow the exchange of delegated instances.
static
<T> HotSwapping.HotSwappingWith<T>
proxy(Class<T> primaryType, Class<?>... types)
          Creates a factory for proxy instances that allow the exchange of delegated instances.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

proxy

public static <T> HotSwapping.HotSwappingWith<T> proxy(Class<T> type)
Creates a factory for proxy instances that allow the exchange of delegated instances.

Parameters:
type - the type of the proxy when it is finally created.
Returns:
a factory that will proxy instances of the supplied type.
Since:
1.0

proxy

public static <T> HotSwapping.HotSwappingWith<T> proxy(Class<T> primaryType,
                                                       Class<?>... types)
Creates a factory for proxy instances that allow the exchange of delegated instances.

Parameters:
primaryType - the primary type implemented by the proxy
types - other types that are implemented by the proxy
Returns:
a factory that will proxy instances of the supplied type.
Since:
1.0


Copyright © 2005-2010 Codehaus. All Rights Reserved.