posted 14 years ago
Yeah, I'm confused as well. If the class doesn't implement some interface at compile time, how do you propose forcing it to implement it at runtime?
There are libraries out there that allow you to take a class at runtime, add some methods to it (that implement an interface), and then have it declare that it implements the interface - is that what you're asking about? If so, a library like Javassist is called for.