com.thoughtworks.proxy.toys.echo
Class Echoing<T>

java.lang.Object
  extended by com.thoughtworks.proxy.toys.echo.Echoing<T>

public class Echoing<T>
extends Object

Factory for echoing proxy instances.

The Echoing toy acts as a decorator where every method invocation is written to a PrintWriter first.

Since:
0.1
Author:
Dan North, Jörg Schaible, Juan Li, Paul Hammant
See Also:
com.thoughtworks.proxy.toys.echo

Nested Class Summary
static class Echoing.EchoingBuild<T>
           
static class Echoing.EchoingTo<T>
           
static class Echoing.EchoingWithOrTo<T>
           
 
Method Summary
static
<T> Echoing.EchoingWithOrTo<T>
proxy(Class<T> type)
          Creates a factory for proxy instances that allow delegation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

proxy

public static <T> Echoing.EchoingWithOrTo<T> proxy(Class<T> type)
Creates a factory for proxy instances that allow delegation.

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


Copyright © 2005-2010 Codehaus. All Rights Reserved.