com.thoughtworks.proxy.toys.nullobject
Class Null.NullBuild<T>

java.lang.Object
  extended by com.thoughtworks.proxy.toys.nullobject.Null.NullBuild<T>
Enclosing class:
Null<T>

public static class Null.NullBuild<T>
extends Object


Method Summary
 T build()
          Generate a Null Object proxy for a specific type using theStandardProxyFactory.
 T build(ProxyFactory factory)
          Generate a Null Object proxy for a specific type using a special ProxyFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

build

public T build()
Generate a Null Object proxy for a specific type using theStandardProxyFactory.

Note that the method will only return a proxy if it cannot handle the type itself or null if the type cannot be proxied.

Returns:
object, proxy or null
Since:
1.0
See Also:
com.thoughtworks.proxy.toys.nullobject

build

public T build(ProxyFactory factory)
Generate a Null Object proxy for a specific type using a special ProxyFactory.

Note that the method will only return a proxy if it cannot handle the type itself or null if the type cannot be proxied.

Parameters:
factory - the ProxyFactory in use
Returns:
object, proxy or null
See Also:
com.thoughtworks.proxy.toys.nullobject


Copyright © 2005-2010 Codehaus. All Rights Reserved.