|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.thoughtworks.proxy.toys.echo.Echoing
public class Echoing
Factory for echoing proxy instances.
The Echoing toy acts as a decorator where every method invocation is written to a PrintWriter first.
com.thoughtworks.proxy.toys.echo
Method Summary | |
---|---|
static Object |
object(Class type)
Create a echoing proxy for a type and use system error channel to report. |
static Object |
object(Class type,
Object impl)
Create a echoing proxy for a type that delegates to an object and use system error channel to report. |
static Object |
object(Class type,
Object impl,
PrintWriter out)
Create a echoing proxy for a type that delegates to an object and report to a given PrintWriter . |
static Object |
object(Class type,
Object impl,
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 Object |
object(Class type,
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 Object |
object(Class type,
PrintWriter out)
Create a echoing proxy for a type and report to a given PrintWriter . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Object object(Class type)
type
- the proxied type
public static Object object(Class type, PrintWriter out)
PrintWriter
.
type
- the proxied typeout
- the PrintWriter receiving the output
public static Object object(Class type, Object impl)
type
- the proxied typeimpl
- the delegated object
public static Object object(Class type, 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 use
public static Object object(Class type, Object impl, PrintWriter out)
PrintWriter
.
type
- the proxied typeimpl
- the delegated objectout
- the PrintWriter receiving the output
public static Object object(Class type, Object impl, 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
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |