public class ClasspathResource extends Object
| Constructor and Description |
|---|
ClasspathResource(File jarFile,
URL url) |
| Modifier and Type | Method and Description |
|---|---|
void |
addJarOffset(String offset,
URL url) |
void |
askListeners(List<ResourceScanListener> listeners)
Allows us to keep a track of who is interested in this classpath artifact
|
void |
collectInUseListeners(Set<ResourceScanListener> listeners)
This is used to collect all of the unique listeners that will be triggered by the next CP scan.
|
void |
fireListeners()
Spelunks through the classpath looking for the resources
|
File |
getClassesSource() |
Set<com.bluetrainsoftware.classpathscanner.ClasspathResource.OffsetListener> |
getJarOffsets() |
URL |
getUrl() |
boolean |
isTestClasspath() |
protected void |
processDirectory(List<ResourceScanListener.ScanResource> scanResources,
File dir,
String packageName,
com.bluetrainsoftware.classpathscanner.ClasspathResource.OffsetListener listener) |
protected void |
processJarFile(List<ResourceScanListener.ScanResource> scanResources) |
void |
removeSingleFireListeners()
Looks through any offsets and removes any listeners that asked to listen to this
resource only once.
|
public void askListeners(List<ResourceScanListener> listeners)
listeners - public void fireListeners()
protected void processDirectory(List<ResourceScanListener.ScanResource> scanResources, File dir, String packageName, com.bluetrainsoftware.classpathscanner.ClasspathResource.OffsetListener listener)
protected void processJarFile(List<ResourceScanListener.ScanResource> scanResources)
public void removeSingleFireListeners()
public void collectInUseListeners(Set<ResourceScanListener> listeners)
listeners - public URL getUrl()
public File getClassesSource()
public Set<com.bluetrainsoftware.classpathscanner.ClasspathResource.OffsetListener> getJarOffsets()
public boolean isTestClasspath()
Copyright © 2014. All Rights Reserved.