classUtils.javassist.reflect
Class Loader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by classUtils.javassist.Loader
          extended by classUtils.javassist.reflect.Loader

public class Loader
extends Loader

A class loader for reflection.

To run a program, say MyApp, including a reflective class, you must write a start-up program as follows:

Then run this program as follows:

This command runs Main.main() with arg1, ... and Main.main() runs MyApp.main() with arg1, ... The Person class is modified to be a reflective class. Method calls on a Person object are intercepted by an instance of MyMetaobject.

Also, you can run MyApp in a slightly different way:

This program is run as follows: