com.thoughtworks.proxy.toys.hotswap
Class HotSwapping<T>
java.lang.Object
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
Method Summary |
static
|
proxy(Class<T> type)
Creates a factory for proxy instances that allow the exchange of delegated instances. |
static
|
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 |
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 proxytypes
- 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.