org.apache.commons.classscan
Interface ClassPath

All Known Subinterfaces:
SpiClassPath
All Known Implementing Classes:
BootstrapClassPath, UrlClassPath

public interface ClassPath

Information about a ClassPath. A ClassPath specifies a list of ClassElement(s). A ClassElement specifies a list of ClassFiles(s).


Method Summary
 List<? extends ClassPathElement> getClassPathElements()
          Get the collection of file base locations specified by this instance
 Map<ClassPathElement,ResourceFile> getResources(String fileName)
          Get files with a particular name
 

Method Detail

getClassPathElements

List<? extends ClassPathElement> getClassPathElements()
Get the collection of file base locations specified by this instance


getResources

Map<ClassPathElement,ResourceFile> getResources(String fileName)
Get files with a particular name

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


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.