Welcome to the FEST Reflection Module

FEST-Reflect is a Java library that provides a Fluent Interface-based API that simplifies the usage of Java Reflection, resulting in improved readability and type safety.

It can be downloaded here. For Maven 2 users, the project's repository can be found at http://fest.googlecode.com/svn/trunk/fest/m2/repository/ (groupId: fest, artifactId: fest-reflect).

Examples

The following examples demonstrate how easy is to access constructors, methods and fields using FEST-Reflect:

Person person = constructor().withParameterTypes(String.class)
                             .in(Person.class)
                             .newInstance("Yoda");
                             
method("setName").withParameterTypes(String.class)
                 .in(person)
                 .invoke("Luke");
                 
field("name").ofType(String.class)
             .in(person)
             .set("Anakin");