org.apache.commons.classscan.builtin
Class DefaultClassPathElementFactory

java.lang.Object
  extended by org.apache.commons.classscan.builtin.DefaultClassPathElementFactory
All Implemented Interfaces:
ClassPathElementFactory

public class DefaultClassPathElementFactory
extends Object
implements ClassPathElementFactory


Constructor Summary
DefaultClassPathElementFactory()
           
 
Method Summary
 SpiClassPathElement getClassPathElement(MetaRegistry metaRegistry, URL url)
          Create a ClassPathElement for a URL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultClassPathElementFactory

public DefaultClassPathElementFactory()
Method Detail

getClassPathElement

public SpiClassPathElement getClassPathElement(MetaRegistry metaRegistry,
                                               URL url)
                                        throws IOException
Description copied from interface: ClassPathElementFactory
Create a ClassPathElement for a URL

Specified by:
getClassPathElement in interface ClassPathElementFactory
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.