Skip to end of metadata
Go to start of metadata

FEST-Reflect is a Java library that provides a fluent interface that simplifies the usage of Java Reflection, resulting in improved readability and type safety.

It can be downloaded here. For Maven 2 users, details about the project's repository can be found at here.

Why FEST-Reflect?

In our opinion, Reflection, when used with caution, can be very useful. For example, in FEST-Swing, there are a couple of special cases where we don't have enough platform-related information to simulate user input on a Swing component. To achieve our goal, our last resource is to access the UI delegate of such component (e.g. JTree) using reflection.

One of the problems with Reflection is that its API is not very intuitive and quite verbose. For example, to call the method:

using reflection, we need the following code:

and with FEST-Reflect:

which, in our opinion, is more compact, readable and type safe.

Documentation [more]

  • No labels