org.jboss.deployers.vfs.spi.structure.modified
Class MergeOverrideSynchAdapter

java.lang.Object
  extended by org.jboss.deployers.vfs.spi.structure.modified.AbstractSynchAdapter
      extended by org.jboss.deployers.vfs.spi.structure.modified.MergeOverrideSynchAdapter
All Implemented Interfaces:
SynchAdapter

public class MergeOverrideSynchAdapter
extends AbstractSynchAdapter

Try merge first, fallback to override.

Author:
Ales Justin

Field Summary
 
Fields inherited from class org.jboss.deployers.vfs.spi.structure.modified.AbstractSynchAdapter
log
 
Constructor Summary
MergeOverrideSynchAdapter()
           
 
Method Summary
 long update(org.jboss.virtual.VirtualFile fileToUpdate, org.jboss.virtual.VirtualFile modifiedFile)
          Update file.
 
Methods inherited from class org.jboss.deployers.vfs.spi.structure.modified.AbstractSynchAdapter
add, copy, delete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MergeOverrideSynchAdapter

public MergeOverrideSynchAdapter()
Method Detail

update

public long update(org.jboss.virtual.VirtualFile fileToUpdate,
                   org.jboss.virtual.VirtualFile modifiedFile)
            throws IOException
Description copied from interface: SynchAdapter
Update file.

Parameters:
fileToUpdate - file to update
modifiedFile - the modified file
Returns:
the update timestamp
Throws:
IOException - for any error


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.