Package org.fest.reflect.constructor


package org.fest.reflect.constructor

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");

  • Classes
    Class
    Description
    Understands the invocation of a constructor via Java Reflection.
    Understands the parameter types for the constructor to invoke.
    Understands the type of object that the constructor will create.