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

java.lang.Object
  extended by com.thoughtworks.proxy.toys.hotswap.HotSwapping.HotSwappingBuild<T>
Direct Known Subclasses:
HotSwapping.HotSwappingBuildOrMode
Enclosing class:
HotSwapping<T>

public static class HotSwapping.HotSwappingBuild<T>
extends Object


Field Summary
protected  HotSwapping<T> hotswapping
           
 
Constructor Summary
HotSwapping.HotSwappingBuild(HotSwapping<T> hotswapping)
           
 
Method Summary
 T build()
          Create a proxy with hot swapping capabilities for specific types of the delegate given with an ObjectReference.
 T build(ProxyFactory factory)
          Create a proxy with hot swapping capabilities for specific types of the delegate given with an ObjectReference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hotswapping

protected final HotSwapping<T> hotswapping
Constructor Detail

HotSwapping.HotSwappingBuild

public HotSwapping.HotSwappingBuild(HotSwapping<T> hotswapping)
Method Detail

build

public T build()
Create a proxy with hot swapping capabilities for specific types of the delegate given with an ObjectReference. The delegate must implement the given types, if the invoker is in static typing mode, otherwise it must only have signature compatible methods. Proxies created by this method will implement Swappable

Returns:
the created proxy implementing the types and Swappable
Since:
1.0
See Also:
com.thoughtworks.proxy.toys.hotswap

build

public T build(ProxyFactory factory)
Create a proxy with hot swapping capabilities for specific types of the delegate given with an ObjectReference. The delegate must implement the given types, if the invoker is in static typing mode, otherwise it must only have signature compatible methods. Proxies created by this method will implement Swappable

Parameters:
factory - the ProxyFactory to use.
Returns:
the created proxy implementing the types and Swappable
Since:
1.0
See Also:
com.thoughtworks.proxy.toys.hotswap


Copyright © 2005-2010 Codehaus. All Rights Reserved.