|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.xwork2.util.finder.UrlSet
public class UrlSet
Use with ClassFinder to filter the Urls to be scanned, example:
UrlSet urlSet = new UrlSet(classLoader); urlSet = urlSet.exclude(ClassLoader.getSystemClassLoader().getParent()); urlSet = urlSet.excludeJavaExtDirs(); urlSet = urlSet.excludeJavaEndorsedDirs(); urlSet = urlSet.excludeJavaHome(); urlSet = urlSet.excludePaths(System.getProperty("sun.boot.class.path", "")); urlSet = urlSet.exclude(".*?/JavaVM.framework/.*"); urlSet = urlSet.exclude(".*?/activemq-(core|ra)-[\\d.]+.jar(!/)?");
Constructor Summary | |
---|---|
UrlSet(ClassLoader classLoader)
|
|
UrlSet(Collection<URL> urls)
Ignores all URLs that are not "jar" or "file" |
|
UrlSet(URL... urls)
|
Method Summary | |
---|---|
UrlSet |
exclude(ClassLoader parent)
|
UrlSet |
exclude(File file)
|
UrlSet |
exclude(String pattern)
|
UrlSet |
exclude(UrlSet urlSet)
|
UrlSet |
excludeJavaEndorsedDirs()
Calls excludePaths(System.getProperty("java.endorsed.dirs")) |
UrlSet |
excludeJavaExtDirs()
Calls excludePaths(System.getProperty("java.ext.dirs")) |
UrlSet |
excludeJavaHome()
|
UrlSet |
excludePaths(String pathString)
|
List<URL> |
getUrls()
|
UrlSet |
include(UrlSet urlSet)
|
UrlSet |
matching(String pattern)
|
UrlSet |
relative(File file)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UrlSet(ClassLoader classLoader) throws IOException
IOException
public UrlSet(URL... urls)
public UrlSet(Collection<URL> urls)
urls
- Method Detail |
---|
public UrlSet include(UrlSet urlSet)
public UrlSet exclude(UrlSet urlSet)
public UrlSet exclude(ClassLoader parent) throws IOException
IOException
public UrlSet exclude(File file) throws MalformedURLException
MalformedURLException
public UrlSet exclude(String pattern) throws MalformedURLException
MalformedURLException
public UrlSet excludeJavaExtDirs() throws MalformedURLException
MalformedURLException
public UrlSet excludeJavaEndorsedDirs() throws MalformedURLException
MalformedURLException
public UrlSet excludeJavaHome() throws MalformedURLException
MalformedURLException
public UrlSet excludePaths(String pathString) throws MalformedURLException
MalformedURLException
public UrlSet matching(String pattern)
public UrlSet relative(File file) throws MalformedURLException
MalformedURLException
public List<URL> getUrls()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |