com.thoughtworks.proxy.toys.multicast
Class Multicasting.MulticastingBuild<T>

java.lang.Object
  extended by com.thoughtworks.proxy.toys.multicast.Multicasting.MulticastingBuild<T>
Enclosing class:
Multicasting<T>

public static class Multicasting.MulticastingBuild<T>
extends Object


Method Summary
 T build()
           
 T build(ProxyFactory factory)
          Generate a proxy for the specified types calling the methods on the given targets using the StandardProxyFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

build

public T build()
Returns:
the proxy using StandardProxyFactory
Since:
1.0

build

public T build(ProxyFactory factory)
Generate a proxy for the specified types calling the methods on the given targets using the StandardProxyFactory.

Note, that the method will only return a proxy if necessary. If there is only one target instance and this instance implements all of the specified types, then there is no point in creating a proxy.

Parameters:
factory - the factory used to generate the proxy
Returns:
the new proxy implementing Multicast or the only target
Since:
1.0


Copyright © 2005-2010 Codehaus. All Rights Reserved.