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

java.lang.Object
  extended by org.jboss.deployers.vfs.spi.structure.modified.AbstractStructureModificationChecker<Long>
      extended by org.jboss.deployers.vfs.spi.structure.modified.SynchWrapperModificationChecker
All Implemented Interfaces:
StructureListener, StructureModificationChecker

public class SynchWrapperModificationChecker
extends AbstractStructureModificationChecker<Long>

Synch wrapper modification checker. If there is no modification, we check if the deployment is perhaps a temp, only then checking if we need to update some resource. e.g. some .jsp or .xhtml file for JBossWeb to pick up the change

Author:
Ales Justin

Field Summary
 
Fields inherited from class org.jboss.deployers.vfs.spi.structure.modified.AbstractStructureModificationChecker
log
 
Constructor Summary
SynchWrapperModificationChecker(AbstractStructureModificationChecker<Long> delegate, SynchAdapter synchAdapter)
           
 
Method Summary
 void addStructureRoot(org.jboss.virtual.VirtualFile root)
          Add structure root.
protected  StructureCache<Long> getCache()
          Get the structure cache.
protected  MainDeployerStructure getMainDeployerStructure()
          Get main deployer structure.
protected  boolean hasRootBeenModified(org.jboss.virtual.VirtualFile root)
          Check the root for modification.
protected  boolean hasStructureBeenModifed(org.jboss.virtual.VirtualFile root, VFSDeploymentContext deploymentContext)
          Has structure been modified.
 void removeStructureRoot(org.jboss.virtual.VirtualFile root)
          Remove structure root.
 void setOriginalAttributes(org.jboss.virtual.VisitorAttributes attributes)
          Set original visitor attributes.
 void setTempAttributes(org.jboss.virtual.VisitorAttributes attributes)
          Set temp visitor attributes.
 
Methods inherited from class org.jboss.deployers.vfs.spi.structure.modified.AbstractStructureModificationChecker
getDeploymentContext, hasStructureBeenModified, hasStructureBeenModified, hasStructureBeenModified, hasStructureBeenModified, setCache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynchWrapperModificationChecker

public SynchWrapperModificationChecker(AbstractStructureModificationChecker<Long> delegate,
                                       SynchAdapter synchAdapter)
Method Detail

getCache

protected StructureCache<Long> getCache()
Description copied from class: AbstractStructureModificationChecker
Get the structure cache.

Overrides:
getCache in class AbstractStructureModificationChecker<Long>
Returns:
the structure cache

getMainDeployerStructure

protected MainDeployerStructure getMainDeployerStructure()
Description copied from class: AbstractStructureModificationChecker
Get main deployer structure.

Overrides:
getMainDeployerStructure in class AbstractStructureModificationChecker<Long>
Returns:
the main deployer structure

hasRootBeenModified

protected boolean hasRootBeenModified(org.jboss.virtual.VirtualFile root)
                               throws IOException
Description copied from class: AbstractStructureModificationChecker
Check the root for modification.

Overrides:
hasRootBeenModified in class AbstractStructureModificationChecker<Long>
Parameters:
root - the root to check
Returns:
true if modified, false otherwise
Throws:
IOException - for any error

hasStructureBeenModifed

protected boolean hasStructureBeenModifed(org.jboss.virtual.VirtualFile root,
                                          VFSDeploymentContext deploymentContext)
                                   throws IOException
Description copied from class: AbstractStructureModificationChecker
Has structure been modified.

Specified by:
hasStructureBeenModifed in class AbstractStructureModificationChecker<Long>
Parameters:
root - the client root
deploymentContext - the deployment context
Returns:
true if modifed, false otherwise
Throws:
IOException - for any error

addStructureRoot

public void addStructureRoot(org.jboss.virtual.VirtualFile root)
Description copied from interface: StructureListener
Add structure root.

Specified by:
addStructureRoot in interface StructureListener
Overrides:
addStructureRoot in class AbstractStructureModificationChecker<Long>
Parameters:
root - the structure root

removeStructureRoot

public void removeStructureRoot(org.jboss.virtual.VirtualFile root)
Description copied from interface: StructureListener
Remove structure root.

Specified by:
removeStructureRoot in interface StructureListener
Overrides:
removeStructureRoot in class AbstractStructureModificationChecker<Long>
Parameters:
root - the structure root

setOriginalAttributes

public void setOriginalAttributes(org.jboss.virtual.VisitorAttributes attributes)
Set original visitor attributes.

Parameters:
attributes - the attributes

setTempAttributes

public void setTempAttributes(org.jboss.virtual.VisitorAttributes attributes)
Set temp visitor attributes.

Parameters:
attributes - the attributes


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