org.apache.commons.classscan.spi
Interface ClassPathElementFactory
- All Known Implementing Classes:
- DefaultClassPathElementFactory
public interface ClassPathElementFactory
Provider to create a ClassPathElement for a URL. Provider instances should
be registered using the ServiceLoader
facility. Each provider class
should have a public default constructor. A single instance of each provider
class will be instantiated.
getClassPathElement
SpiClassPathElement getClassPathElement(MetaRegistry metaRegistry,
URL url)
throws IOException
- Create a ClassPathElement for a URL
- Parameters:
metaRegistry
- The registryurl
- The url that is the base location of class files
- Returns:
- null, if the URL scheme cannot be supported; otherwise a ClassPathElement for the URL
- Throws:
IOException
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.