org.apache.commons.classscan.builtin
Class UrlClassPath
java.lang.Object
  
org.apache.commons.classscan.builtin.UrlClassPath
- All Implemented Interfaces: 
 - ClassPath, SpiClassPath
 
public class UrlClassPath
- extends Object
- implements SpiClassPath
  
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
UrlClassPath
public UrlClassPath(SpiMetaRegistry registry,
                    URLClassLoader urlClassLoader)
getClassPathElements
public List<? extends ClassPathElement> getClassPathElements()
- Description copied from interface: 
ClassPath 
- Get the collection of file base locations specified by this instance
- Specified by:
 getClassPathElements in interface ClassPath
 
 
 
createMetaClassLoader
public SpiMetaClassLoader createMetaClassLoader(SpiMetaRegistry registry,
                                                ClassLoader classLoader)
- Description copied from interface: 
SpiClassPath 
- Create a MetaClassLoader that will inspect the classes specified by this ClassPath
- Specified by:
 createMetaClassLoader in interface SpiClassPath
 
- Returns:
 - metadata about ClassLoader
 
 
 
getResources
public Map<ClassPathElement,ResourceFile> getResources(String fileName)
- Description copied from interface: 
ClassPath 
- Get files with a particular name
- Specified by:
 getResources in interface ClassPath
 
- Parameters:
 fileName - The name of the desired file (this may be a path such as META-INF/resources/com.example.group.interface)
- Returns:
 - A Map of base locations as the keys and absolute file locations as the values
 
 
 
searchElements
public void searchElements(Map<String,ClassPathElement> visited,
                           Map<ClassPathElement,ResourceFile> resources,
                           Collection<SpiClassPathElement> elements,
                           String fileName)
 
 
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.