com.thoughtworks.proxy.toys.delegate
Class Delegating<T>

java.lang.Object
  extended by com.thoughtworks.proxy.toys.delegate.Delegating<T>

public class Delegating<T>
extends Object

Toy factory to create proxies delegating to another 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.

Since:
0.1
Author:
Dan North, Jian Li, Paul Hammant
See Also:
com.thoughtworks.proxy.toys.delegate

Nested Class Summary
static class Delegating.DelegatingBuild<T>
           
static class Delegating.DelegatingModeOrBuild<T>
           
static class Delegating.DelegatingWith<T>
           
 
Method Summary
static
<T> Delegating.DelegatingWith<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> Delegating.DelegatingWith<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.