Conversion of bytes into a type without changing the application (ie storing the conversion method i
- by geoaxis
Is there a way to store a conversion strategy (for converting some bytes) into a database and then execute it on the run time.
If one were to store a complete java file, you would need to compile it, store the class and some how inject into the already running system. I am not sure how this would be possible.
But using some kind of dynamic language on JVM would be nice.
I see an example of execution of groovy from within spring context here
http://www.devx.com/tips/Tip/42789
but this is still static in nature as application context contains the reference to the implementation and cannot be changed by database.
Perhaps with JavaConfig of context it is possible. I am exploring options now, specifically with Spring 3.0. Your suggestions in any direction would be welcome.