Package org.fest.reflect.constructor

Provides a "fluent" API for constructor invocation via the Java Reflection API.

See:
          Description

Class Summary
Invoker<T> Understands the invocation of a constructor via Java Reflection.
ParameterTypes Understands the parameter types for the constructor to invoke.
TargetType Understands the type of object that the constructor will create.
 

Package org.fest.reflect.constructor Description

Provides a "fluent" API for constructor invocation via the Java Reflection API.

Note: Classes in this package are not intended to be used directly. To use them, you need to use the class org.fest.reflect.core.Reflection.

Here are some examples:

   // import static org.fest.reflect.core.Reflection.*;

   // Equivalent to call 'new Person()'
   Person p = constructor().in(Person.class).newInstance();
   
   // Equivalent to call 'new Person("Yoda")'
   Person p = constructor().withParameterTypes(String.class).in(Person.class).newInstance("Yoda");



Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.