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.
getClassPath
SpiClassPath getClassPath(SpiMetaRegistry metaRegistry,
ClassLoader classLoader)
- Create a ClassPath for a ClassLoader
- Parameters:
metaRegistry
- The registryclassLoader
- 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.