In case of customize object behavior at runtime, Java seems to provide two solutions, Java Scripting and Dynamic Proxy.
suppose I have a configuration file and an interface I in Java, I can either create and load class implementing I according to configuration or I can use dynamic proxy to make implementation of the I as well. Both technique is a little advanced. I am now wondering
1- which of these two ways is more efficient in development? 2- which of these technology is more optimized in performance? 3- which way is more maintainable? (before product is stable, configuration might be changed frequently)
Sincerely