I'm trying to make an application that will be able to load a class from an external .jar file. However, I need to refer to the class I will load by it's type (it's a grandchild class of DefaultHandler for Sax parser).
I thought I'd do it this way :
I'll define an abstract class Hammer extends DefaultHandler
The class in an external file will extend Hammer (let's call the external class SpecialHammer)
I'll load SpecialHammer using URLLoader.
The problem is that I don't know how (and where) to define Hammer to make sure that the application believes that the SpecialHammer it is loading actually extends the Hammer it knows. I tried putting the same Hammer class in the application and in the external .jar, but it did not work :/
I basically need to know how to share an abstract class between two jars so that both know they're reffering to the same class.
I'm using Eclipse if that's of any help.