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.


Method Summary
 SpiClassPathElement getClassPathElement(MetaRegistry metaRegistry, URL url)
          Create a ClassPathElement for a URL
 

Method Detail

getClassPathElement

SpiClassPathElement getClassPathElement(MetaRegistry metaRegistry,
                                        URL url)
                                        throws IOException
Create a ClassPathElement for a URL

Parameters:
metaRegistry - The registry
url - 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.