org.jboss.errai.common.metadata
Class LeafUrlType
java.lang.Object
org.jboss.errai.common.metadata.LeafUrlType
- All Implemented Interfaces:
- Vfs.UrlType
public final class LeafUrlType
- extends Object
- implements Vfs.UrlType
A trivial URL Type handler for Reflections VFS which matches any classpath
entry ending with a given suffix (or filename extension) and returns an empty
VFS directory. When used with the extension ".jnilib", this helps silence a
bunch of warnings that happen when you compile an Errai app on a Mac OS X
JVM.
Instances are fully immutable and therefore threadsafe.
Constructor Summary |
LeafUrlType(String urlSuffix)
Creates a new LeafUrlType that matches URLs with the given suffix. |
LeafUrlType
public LeafUrlType(String urlSuffix)
- Creates a new LeafUrlType that matches URLs with the given suffix.
- Parameters:
urlSuffix
- the filename suffix to match. Must not be null.
matches
public boolean matches(URL url)
- Specified by:
matches
in interface Vfs.UrlType
createDir
public Vfs.Dir createDir(URL url)
- Specified by:
createDir
in interface Vfs.UrlType
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.