Creating anonymous dynamic runtime instances
===

How can I create implementations of an interface dynamically at runtime in java?

I have a factory that will read the annotations on class a and create an instance of class b. For this factory to be type safe, I'd like my client factories to be interfaces with a factory method that takes type a and returns type b. I then want my factory to implement this factory method at runtime.

Is there a way to do this?
