[jboss-dev-forums] [Design the new POJO MicroContainer] - Best files update strategy

alesj do-not-reply at jboss.com
Tue Apr 7 12:02:00 EDT 2009


WRT:
 - http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224070#4224070

What would be the best way to "notice" user file changes/updates?
The idea is to make it temp agnostic.

With the previous discussion (see wrt), I see two options:
(1) each sub-system has a way of diff between original and possible temp 
** see Remy's option on JBW having a VFS/VDF based resources lookup

(2) push any changes from original to temp

The (1) is read only, hence faster.
Where (2) is completely general, but needs to do read/write.

I've started off with (2):
 - http://anonsvn.jboss.org/repos/jbossas/projects/jboss-deployers/trunk/deployers-vfs-spi/src/main/java/org/jboss/deployers/vfs/spi/structure/modified/SynchWrapperModificationChecker.java

But if someone has a better idea, I'm all ears. :-)

Btw: is there some oss framework like svn's merge,
so instead of overriding files, we would simply merge them?


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224098#4224098

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224098



More information about the jboss-dev-forums mailing list