[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Refreshing entries in JARs
alesj
do-not-reply at jboss.com
Wed Apr 23 05:18:20 EDT 2008
"alesj" wrote :
| I'll have a look what can be done if I add some 'reconstruct' method to VirtualFileHandler.
This looks like a huge hassle for something that rarely happens (runtime jar modification), and which has a much nicer workaround (exploded archive).
The thing is that current JAR handling architecture wasn't designed to handle reconstruction out-of-the-box.
In case of updating some inner jar, you need to go all the way to root jar, and do the hierarchy creation again, iterating over zip entries, but at the same time keeping the previously created handlers, and correctly modifying them.
I'm not saying it's impossible, it's mostly what we already do, just need to take existing handlers into consideration.
But instead of tweaking the existing code, this should probably be done on a clean rewrite.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146086#4146086
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146086
More information about the jboss-dev-forums
mailing list