[Biojava-l] Adding introspection to the ChangeEvent system

Thomas Down td2@sanger.ac.uk
Tue, 16 Jan 2001 12:10:08 +0000

I've added a simple introspection system to the biojava
ChangeEvent mechanism.

There's an extra method in ChangeType:

  public static Set getChangeTypes(Class clazz);

This returns a set of all ChangeTypes declared by the specified
class (and any superclasses and interfaces).

I've written a quick command line tool to do the introspection -- look
at ListChangeTypes.java in the demos/ directory.

This also potentially opens the way for using the ChangeEvents
in an IDE-type environment.  Are there any IDEs out there which
allow plugins for introspection of classes, or is this always
hard-coded?  If not, why not? ;)