Conversion of bytes into a type without changing the application (ie storing the conversion method i

Posted by geoaxis on Stack Overflow See other posts from Stack Overflow or by geoaxis
Published on 2010-03-21T12:44:13Z Indexed on 2010/03/21 12:51 UTC
Read the original article Hit count: 692

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about spring

Related posts about java