Alex is a Software Engineer working on Android development tools, especially Android Studio, at Google. His interests include Java, API design, OOP, IDEs and testing. Alex spends some of his spare time working on Open Source, blogging, writing technical articles, and speaking at international conferences. The opinions expressed here represent his own and not those of his employer. Alex is a DZone MVB and is not an employee of DZone and has posted 49 posts at DZone. You can read more from them at their website. View Full User Profile

FEST-Reflect 0.4: Fluent Interface for Java Reflection

02.27.2008
| 3969 views |
  • submit to reddit

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 supports access to constructors, methods and fields.

We are proud to announce that FEST-Reflect 0.4 is out!

This new release provides support for accessing static fields and invoking static methods:

int count = staticField("count").ofType(int.class)  
.in(Person.class)
.get();

You can download the latest release here (file fest-reflect-0.4.zip.) FEST-Reflect requires Java SE 5.0 or later.

Here are some useful links:

Feedback is always appreciated :)

 

 


0
Published at DZone with permission of Alex Ruiz, author and DZone MVB.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)