Errai 3.0.1-SNAPSHOT

org.jboss.errai.common.metadata
Class LeafUrlType

java.lang.Object
  extended by 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.
 
Method Summary
 Vfs.Dir createDir(URL url)
           
 boolean matches(URL url)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.