|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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,
Set<String> protocols)
|
|
UrlSet(Collection<URL> urls)
Ignores all URLs that are not "jar" or "file" |
|
UrlSet(URL... urls)
|
Method Summary | |
---|---|
UrlSet |
exclude(ClassLoaderInterface 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 |
includeClassesUrl(ClassLoaderInterface classLoaderInterface)
Try to find a classes directory inside a war file add its normalized url to this set |
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(ClassLoaderInterface classLoader) throws IOException
IOException
public UrlSet(ClassLoaderInterface classLoader, Set<String> protocols) 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(ClassLoaderInterface 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 includeClassesUrl(ClassLoaderInterface classLoaderInterface) throws IOException
IOException
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 |