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

java.lang.Object
  extended by com.thoughtworks.proxy.toys.multicast.Multicasting<T>

public class Multicasting<T>
extends Object

Toy factory to create proxies delegating a call to multiple objects and managing the individual results.

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

Nested Class Summary
static class Multicasting.MulticastingBuild<T>
           
static class Multicasting.MulticastingWith<T>
           
 
Method Summary
static
<T> Multicasting.MulticastingWith<T>
proxy(Class<T> primaryType, Class<?>... types)
          Creates a factory for proxy instances delegating a call to multiple objects and managing the individual results.
static Multicasting.MulticastingBuild<Multicast> proxy(Object... targets)
          Creates a factory for proxy instances delegating a call to multiple objects and managing the individual results.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

proxy

public static <T> Multicasting.MulticastingWith<T> proxy(Class<T> primaryType,
                                                         Class<?>... types)
Creates a factory for proxy instances delegating a call to multiple objects and managing the individual results.

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

proxy

public static Multicasting.MulticastingBuild<Multicast> proxy(Object... targets)
Creates a factory for proxy instances delegating a call to multiple objects and managing the individual results.

Parameters:
targets - targets the target objects
Returns:
a factory that will proxy instances of the supplied type.
Since:
1.0


Copyright © 2005-2010 Codehaus. All Rights Reserved.