org.jboss.deployment
Class FileNameVirtualFileFilter
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileNameVirtualFileFilter
public FileNameVirtualFileFilter(Map<String,Set<String>> excludes)
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.