public class Delegating<T> extends Object
Such a proxy is used to mask the methods of an object, that are not part of a public interface. Or it is used to make an object compatible, e.g. when an object implements the methods of an interface, but does not implement the interface itself.
com.thoughtworks.proxy.toys.delegate| Modifier and Type | Class and Description |
|---|---|
static class |
Delegating.DelegatingBuild<T> |
static class |
Delegating.DelegatingModeOrBuild<T> |
static class |
Delegating.DelegatingWith<T> |
| Modifier and Type | Method and Description |
|---|---|
static <T> Delegating.DelegatingWith<T> |
proxy(Class<T> type)
Creates a factory for proxy instances that allow delegation.
|
public static <T> Delegating.DelegatingWith<T> proxy(Class<T> type)
type - the type of the proxy when it is finally created.Copyright © 2005–2018 Codehaus. All rights reserved.