org.apache.commons.classscan
Interface MetaRegistry

All Known Subinterfaces:
SpiMetaRegistry
All Known Implementing Classes:
DefaultMetaRegistry

public interface MetaRegistry

The entry point from which to find information about the ClassPath and the classes available from the ClassPath.


Field Summary
static MetaRegistry DEFAULT_REGISTRY
           
 
Method Summary
 ClassPath getClassPath(ClassLoader classLoader)
          Get the ClassPath for a ClassLoader
 MetaClassLoader getMetaClassLoader(ClassLoader classLoader)
          Get the MetaClassLoader for a ClassLoader.
 

Field Detail

DEFAULT_REGISTRY

static final MetaRegistry DEFAULT_REGISTRY
Method Detail

getMetaClassLoader

MetaClassLoader getMetaClassLoader(ClassLoader classLoader)
Get the MetaClassLoader for a ClassLoader. If possible, an existing MetaClassLoader is returned. Otherwise, the MetaClassLoader is created.

Parameters:
classLoader - The ClassLoader for which metadata is desired (may be be null, for the bootstrap ClassLoader)
Returns:
The metadata about a ClassLoader

getClassPath

ClassPath getClassPath(ClassLoader classLoader)
Get the ClassPath for a ClassLoader

Parameters:
classLoader - The ClassLoader for which metadata is desired (may be be null, for the bootstrap ClassLoader)
Returns:
The ClassPath for the ClassLoader


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