public class Echoing
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 | Method and Description |
---|---|
static java.lang.Object |
object(java.lang.Class type)
Create a echoing proxy for a type and use system error channel to report.
|
static java.lang.Object |
object(java.lang.Class type,
java.lang.Object impl)
Create a echoing proxy for a type that delegates to an object and use system error channel to report.
|
static java.lang.Object |
object(java.lang.Class type,
java.lang.Object impl,
java.io.PrintWriter out)
Create a echoing proxy for a type that delegates to an object and report to a given
PrintWriter . |
static java.lang.Object |
object(java.lang.Class type,
java.lang.Object impl,
java.io.PrintWriter out,
ProxyFactory factory)
Create a echoing proxy for a type that delegates to an object and use a special
ProxyFactory
implementation as well as reports to a given PrintWriter . |
static java.lang.Object |
object(java.lang.Class type,
java.lang.Object impl,
ProxyFactory factory)
Create a echoing proxy for a type that delegates to an object and use a special
ProxyFactory
implementation as well as the system error channel to report. |
static java.lang.Object |
object(java.lang.Class type,
java.io.PrintWriter out)
Create a echoing proxy for a type and report to a given
PrintWriter . |
public static java.lang.Object object(java.lang.Class type)
type
- the proxied typepublic static java.lang.Object object(java.lang.Class type, java.io.PrintWriter out)
PrintWriter
.type
- the proxied typeout
- the PrintWriter receiving the outputpublic static java.lang.Object object(java.lang.Class type, java.lang.Object impl)
type
- the proxied typeimpl
- the delegated objectpublic static java.lang.Object object(java.lang.Class type, java.lang.Object impl, ProxyFactory factory)
ProxyFactory
implementation as well as the system error channel to report.type
- the proxied typeimpl
- the delegated objectfactory
- the ProxyFactory to usepublic static java.lang.Object object(java.lang.Class type, java.lang.Object impl, java.io.PrintWriter out)
PrintWriter
.type
- the proxied typeimpl
- the delegated objectout
- the PrintWriter receiving the outputpublic static java.lang.Object object(java.lang.Class type, java.lang.Object impl, java.io.PrintWriter out, ProxyFactory factory)
ProxyFactory
implementation as well as reports to a given PrintWriter
.type
- the proxied typeimpl
- the delegated objectout
- the PrintWriter receiving the outputfactory
- the ProxyFactory to use