org.jboss.deployment
Class FileNameVirtualFileFilter

java.lang.Object
  extended by org.jboss.deployment.FileNameVirtualFileFilter
All Implemented Interfaces:
org.jboss.virtual.VirtualFileFilter

public class FileNameVirtualFileFilter
extends Object
implements org.jboss.virtual.VirtualFileFilter

Exclude virtual file by file name and path.

Author:
ales.justin@jboss.org

Constructor Summary
FileNameVirtualFileFilter(Map<String,Set<String>> excludes)
           
 
Method Summary
 boolean accepts(org.jboss.virtual.VirtualFile file)
          Do we accept file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileNameVirtualFileFilter

public FileNameVirtualFileFilter(Map<String,Set<String>> excludes)
Method Detail

accepts

public boolean accepts(org.jboss.virtual.VirtualFile file)
Do we accept file. If pathName contains any of the keys, * if the value is null - then do exclude * if value is not null - only exclude if it value contains simple name

Specified by:
accepts in interface org.jboss.virtual.VirtualFileFilter
Parameters:
file - the virtual file
Returns:
false if file is excluded by excludes map, true other wise


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