The following sections illustrates class loading using FEST-Reflect. We are going to assume the following static import:
This example shows how to load the class org.fest.org.republic.Jedi:
Loading a Class as one of its Super-types
FEST-Reflect allows us to load a class as one of its super-types. For example, let's assume we have the class Jedi that extends Person. With FEST-Reflect we can load the class Jedi as Person:
Using Custom ClassLoaders
FEST-Reflect allows us to load a class using a custom ClassLoader.
Labels