public class Echoing<T>
extends java.lang.Object
The Echoing toy acts as a decorator where every method invocation is written to a PrintWriter first.
com.thoughtworks.proxy.toys.echo| Modifier and Type | Class and Description |
|---|---|
static class |
Echoing.EchoingBuild<T> |
static class |
Echoing.EchoingTo<T> |
static class |
Echoing.EchoingWithOrTo<T> |
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Object |
delegate |
private java.io.PrintWriter |
printWriter |
private java.lang.Class<T> |
type |
| Modifier | Constructor and Description |
|---|---|
private |
Echoing(java.lang.Class<T> type) |
| Modifier and Type | Method and Description |
|---|---|
static <T> Echoing.EchoingWithOrTo<T> |
proxy(java.lang.Class<T> type)
Creates a factory for proxy instances that allow delegation.
|
private java.lang.Class<T> type
private java.lang.Object delegate
private java.io.PrintWriter printWriter
private Echoing(java.lang.Class<T> type)
public static <T> Echoing.EchoingWithOrTo<T> proxy(java.lang.Class<T> type)
type - the type of the proxy when it is finally created.