com.thoughtworks.proxy.toys.dispatch
Class Dispatching

java.lang.Object
  extended by com.thoughtworks.proxy.toys.dispatch.Dispatching

public class Dispatching
extends Object

Proxy factory for dispatching proxy instances.

Since:
0.2
Author:
Jörg Schaible
See Also:
com.thoughtworks.proxy.toys.dispatch

Method Summary
static Object object(Class[] types, Object[] delegates)
          Create a dispatching proxy of given types for the given objects.
static Object object(Class[] types, Object[] delegates, ProxyFactory factory)
          Create a dispatching proxy of given types for the given objects using a special ProxyFactory implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

object

public static Object object(Class[] types,
                            Object[] delegates)
Create a dispatching proxy of given types for the given objects.

Parameters:
types - the types of the proxy
delegates - the objects, that will receive the calls
Returns:
the created proxy
Since:
0.2

object

public static Object object(Class[] types,
                            Object[] delegates,
                            ProxyFactory factory)
Create a dispatching proxy of given types for the given objects using a special ProxyFactory implementation.

Parameters:
types - the types of the proxy
delegates - the objects, that will receive the calls
factory - the ProxyFactory to use
Returns:
the created proxy
Since:
0.2