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.
This is kind of like giving the end use a DSL (domain specific language) to store and execute conversion strategies. The end user would be able to put in their custom rules
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.