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

java.lang.Object
  extended by org.jboss.deployers.vfs.spi.structure.modified.SynchVisitor
All Implemented Interfaces:
org.jboss.virtual.VirtualFileVisitor
Direct Known Subclasses:
AddVisitor, UpdateDeleteVisitor

public abstract class SynchVisitor
extends Object
implements org.jboss.virtual.VirtualFileVisitor

Synch file visitor.

Author:
Ales Justin

Field Summary
protected  org.jboss.logging.Logger log
           
 
Constructor Summary
protected SynchVisitor(org.jboss.virtual.VisitorAttributes attributes, StructureCache<Long> cache, SynchAdapter synchAdapter)
           
 
Method Summary
protected abstract  void doVisit(org.jboss.virtual.VirtualFile file)
          Visit a virtual file
 org.jboss.virtual.VisitorAttributes getAttributes()
           
protected  StructureCache<Long> getCache()
          Get cache.
protected  SynchAdapter getSynchAdapter()
          Get synch adapter.
 void visit(org.jboss.virtual.VirtualFile file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.jboss.logging.Logger log
Constructor Detail

SynchVisitor

protected SynchVisitor(org.jboss.virtual.VisitorAttributes attributes,
                       StructureCache<Long> cache,
                       SynchAdapter synchAdapter)
Method Detail

getAttributes

public org.jboss.virtual.VisitorAttributes getAttributes()
Specified by:
getAttributes in interface org.jboss.virtual.VirtualFileVisitor

visit

public void visit(org.jboss.virtual.VirtualFile file)
Specified by:
visit in interface org.jboss.virtual.VirtualFileVisitor

doVisit

protected abstract void doVisit(org.jboss.virtual.VirtualFile file)
                         throws Exception
Visit a virtual file

Parameters:
file - the virtual file being visited
Throws:
Exception - for any error

getCache

protected StructureCache<Long> getCache()
Get cache.

Returns:
the cache

getSynchAdapter

protected SynchAdapter getSynchAdapter()
Get synch adapter.

Returns:
the syncj adapter


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