net.vidageek.mirror.invoke.dsl
Interface ConstructorHandler<T>

All Known Implementing Classes:
ConstructorHandlerByArgs, ConstructorHandlerByConstructor

public interface ConstructorHandler<T>

Interface for classes responsible for invoking constructors.

Author:
jonasabreu

Method Summary
 T withArgs(java.lang.Object... args)
          Invoke a constructor using args as its arguments.
 T withoutArgs()
          Invoke a constructor without arguments.
 

Method Detail

withoutArgs

T withoutArgs()
Invoke a constructor without arguments.

Returns:
An instance of object this constructor can create.

withArgs

T withArgs(java.lang.Object... args)
Invoke a constructor using args as its arguments.

Parameters:
args - arguments to use when invoking this constructor.
Returns:
An instance of object this constructor can create.


Copyright © 2009 VidaGeek.net. All Rights Reserved.