|
||||||||||
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(ClassLoaderInterface classLoader)
|
|
UrlSet(ClassLoaderInterface classLoader,
java.util.Set<java.lang.String> protocols)
|
|
UrlSet(java.util.Collection<java.net.URL> urls)
Ignores all URLs that are not "jar" or "file" |
|
UrlSet(java.net.URL... urls)
|
Method Summary | |
---|---|
UrlSet |
exclude(ClassLoaderInterface parent)
|
UrlSet |
exclude(java.io.File file)
|
UrlSet |
exclude(java.lang.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(java.lang.String pathString)
|
java.util.List<java.net.URL> |
getUrls()
|
UrlSet |
include(UrlSet urlSet)
|
UrlSet |
includeClassesUrl(ClassLoaderInterface classLoaderInterface)
Try to find a classes directory inside a war file add its normalized url to this set |
UrlSet |
matching(java.lang.String pattern)
|
UrlSet |
relative(java.io.File file)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UrlSet(ClassLoaderInterface classLoader) throws java.io.IOException
java.io.IOException
public UrlSet(ClassLoaderInterface classLoader, java.util.Set<java.lang.String> protocols) throws java.io.IOException
java.io.IOException
public UrlSet(java.net.URL... urls)
public UrlSet(java.util.Collection<java.net.URL> urls)
urls
- Method Detail |
---|
public UrlSet include(UrlSet urlSet)
public UrlSet exclude(UrlSet urlSet)
public UrlSet exclude(ClassLoaderInterface parent) throws java.io.IOException
java.io.IOException
public UrlSet exclude(java.io.File file) throws java.net.MalformedURLException
java.net.MalformedURLException
public UrlSet exclude(java.lang.String pattern) throws java.net.MalformedURLException
java.net.MalformedURLException
public UrlSet excludeJavaExtDirs() throws java.net.MalformedURLException
java.net.MalformedURLException
public UrlSet excludeJavaEndorsedDirs() throws java.net.MalformedURLException
java.net.MalformedURLException
public UrlSet excludeJavaHome() throws java.net.MalformedURLException
java.net.MalformedURLException
public UrlSet excludePaths(java.lang.String pathString) throws java.net.MalformedURLException
java.net.MalformedURLException
public UrlSet matching(java.lang.String pattern)
public UrlSet includeClassesUrl(ClassLoaderInterface classLoaderInterface) throws java.io.IOException
java.io.IOException
public UrlSet relative(java.io.File file) throws java.net.MalformedURLException
java.net.MalformedURLException
public java.util.List<java.net.URL> getUrls()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |