net.vidageek.mirror.reflect.dsl
Interface ConstructorReflector<T>

All Known Implementing Classes:
DefaultConstructorReflector

public interface ConstructorReflector<T>


Method Summary
 Constructor<T> withAnyArgs()
          Use this method to reflect the only constructor on the class
 Constructor<T> withArgs(Class<?>... classes)
          Use this method to reflect a constructor using its argument list.
 Constructor<T> withoutArgs()
          This is a convenience method for withArgs(Class...)
 

Method Detail

withArgs

Constructor<T> withArgs(Class<?>... classes)
Use this method to reflect a constructor using its argument list.

Parameters:
classes - argument types of the constructor to be reflected.
Returns:
A constructor matching args or null if none is found.
See Also:
ClassReflectionProvider.reflectConstructor(Class[])

withoutArgs

Constructor<T> withoutArgs()
This is a convenience method for withArgs(Class...)


withAnyArgs

Constructor<T> withAnyArgs()
Use this method to reflect the only constructor on the class

Returns:
The only constructor of the class
Throws:
MirrorException - if more than one constructor is found on the class


Copyright © 2011 VidaGeek.net. All Rights Reserved.