net.vidageek.mirror.reflect
Class DefaultConstructorReflector<T>

java.lang.Object
  extended by net.vidageek.mirror.reflect.DefaultConstructorReflector<T>
All Implemented Interfaces:
ConstructorReflector<T>

public final class DefaultConstructorReflector<T>
extends java.lang.Object
implements ConstructorReflector<T>

This class is responsible for reflecting a constructor.

Author:
jonasabreu

Constructor Summary
DefaultConstructorReflector(ReflectionProvider provider, java.lang.Class<T> clazz)
           
 
Method Summary
 java.lang.reflect.Constructor<T> withArgs(java.lang.Class<?>... classes)
          Use this method to reflect a constructor using its argument list.
 java.lang.reflect.Constructor<T> withoutArgs()
          This is a convenience method for withArgs(Class...)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConstructorReflector

public DefaultConstructorReflector(ReflectionProvider provider,
                                   java.lang.Class<T> clazz)
Method Detail

withArgs

public java.lang.reflect.Constructor<T> withArgs(java.lang.Class<?>... classes)
Description copied from interface: ConstructorReflector
Use this method to reflect a constructor using its argument list.

Specified by:
withArgs in interface ConstructorReflector<T>
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

public java.lang.reflect.Constructor<T> withoutArgs()
Description copied from interface: ConstructorReflector
This is a convenience method for withArgs(Class...)

Specified by:
withoutArgs in interface ConstructorReflector<T>


Copyright © 2009 VidaGeek.net. All Rights Reserved.