zhiqinghuang / oryx-editor

Automatically exported from code.google.com/p/oryx-editor
Other
0 stars 0 forks source link

ClassFinder is harmful #436

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The ClassFinder class is used to find classes that are implementing or 
extending an interface or a class under a package name.

However that class uses a file based approach to read the files present under 
the directory, then load them in memory, and finally checks if they are 
compatible.

It is a lot of effort when those classes could be defined under a meta package 
class a la EMF.
It only works inside wars as ClassFinder assumes the presence of 
WEB-INF/classes. It will never work in a development environment for that 
reason, it will also be difficult for it to work when used as an OSGi bundle.

Original issue reported on code.google.com by antoine....@gmail.com on 9 Jun 2010 at 1:29