org.apache.commons.classscan.spi
Interface ClassPathFactory

All Known Implementing Classes:
DefaultClassPathFactory

public interface ClassPathFactory

Provider to create SpiClassPath for a ClassLoader. 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
 SpiClassPath getClassPath(SpiMetaRegistry metaRegistry, ClassLoader classLoader)
          Create a ClassPath for a ClassLoader
 

Method Detail

getClassPath

SpiClassPath getClassPath(SpiMetaRegistry metaRegistry,
                          ClassLoader classLoader)
Create a ClassPath for a ClassLoader

Parameters:
metaRegistry - The registry
classLoader - The classLoader
Returns:
null, if the ClassLoader type cannot be supported; otherwise a ClassPath for the ClassLoader


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