org.jboss.deployers.vfs.plugins.structure.modify
Class FileModificationTypeMatcher

java.lang.Object
  extended by org.jboss.deployers.vfs.plugins.structure.modify.AbstractModificationTypeMatcher
      extended by org.jboss.deployers.vfs.plugins.structure.modify.FileModificationTypeMatcher
All Implemented Interfaces:
ModificationTypeMatcher
Direct Known Subclasses:
ExplodeTopModificationTypeMatcher, TempTopModificationTypeMatcher, UnjarTopModificationTypeMatcher

public class FileModificationTypeMatcher
extends AbstractModificationTypeMatcher

File modification type matcher.

Author:
Ales Justin

Field Summary
 
Fields inherited from class org.jboss.deployers.vfs.plugins.structure.modify.AbstractModificationTypeMatcher
log
 
Constructor Summary
FileModificationTypeMatcher(String... paths)
           
 
Method Summary
protected  List<org.jboss.virtual.VirtualFile> getStartingFiles(org.jboss.virtual.VirtualFile file, ContextInfo contextInfo)
          Get starting files for path check.
protected  boolean isModificationDetermined(org.jboss.virtual.VirtualFile root, ContextInfo contextInfo)
          Is modification determined.
 void setMetadataOnly(boolean metadataOnly)
          Should we check metadata only.
 
Methods inherited from class org.jboss.deployers.vfs.plugins.structure.modify.AbstractModificationTypeMatcher
determineModification, determineModification, setCheckChildren, setChildrenOnly, setModificationType, setTopLevelOnly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileModificationTypeMatcher

public FileModificationTypeMatcher(String... paths)
Method Detail

isModificationDetermined

protected boolean isModificationDetermined(org.jboss.virtual.VirtualFile root,
                                           ContextInfo contextInfo)
Description copied from class: AbstractModificationTypeMatcher
Is modification determined.

Specified by:
isModificationDetermined in class AbstractModificationTypeMatcher
Parameters:
root - the file
contextInfo - the context info
Returns:
true if we should apply modification type, false otherwise

getStartingFiles

protected List<org.jboss.virtual.VirtualFile> getStartingFiles(org.jboss.virtual.VirtualFile file,
                                                               ContextInfo contextInfo)
Get starting files for path check.

Parameters:
file - the current file
contextInfo - the context info
Returns:
list of starting files

setMetadataOnly

public void setMetadataOnly(boolean metadataOnly)
Should we check metadata only.

Parameters:
metadataOnly - the metadata only flag


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