|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.classscan.builtin.DefaultMetaRegistry
public class DefaultMetaRegistry
The factory for MetaClassLoaders. Wherever possible, an existing MetaClassLoader is returned for a ClassLoader. The implementation should not prevent the garbage collection of a ClassLoader.
| Field Summary |
|---|
| Fields inherited from interface org.apache.commons.classscan.MetaRegistry |
|---|
DEFAULT_REGISTRY |
| Constructor Summary | |
|---|---|
DefaultMetaRegistry()
|
|
| Method Summary | |
|---|---|
SpiClassPathElement |
createClassPathElement(URL url)
Create a ClassPathElement from a URL. |
SpiMetaClass |
createMetaClass(MetaClassPathElement location,
String className,
InputStream byteStream)
Create SpiMetaClass from a MetaClassPathElement. |
MetaClassLoader |
createMetaClassLoader(ClassLoader classLoader)
|
SpiMetaClassPathElement |
createMetaClassPathElement(ClassPathElement pathElement)
Create SpiMetaClassPathElement from a ClassPathElement. |
SpiClassPath |
getClassPath(ClassLoader classLoader)
Get the ClassPath for a ClassLoader |
MetaClassLoader |
getMetaClassLoader(ClassLoader classLoader)
Get the MetaClassLoader for a ClassLoader. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultMetaRegistry()
| Method Detail |
|---|
public MetaClassLoader getMetaClassLoader(ClassLoader classLoader)
MetaRegistry
getMetaClassLoader in interface MetaRegistryclassLoader - The ClassLoader for which metadata is desired (may be be null,
for the bootstrap ClassLoader)
public MetaClassLoader createMetaClassLoader(ClassLoader classLoader)
public SpiClassPath getClassPath(ClassLoader classLoader)
MetaRegistry
getClassPath in interface MetaRegistryclassLoader - The ClassLoader for which metadata is desired (may be be null,
for the bootstrap ClassLoader)
public SpiClassPathElement createClassPathElement(URL url)
throws IOException
SpiMetaRegistryClassPathElementFactory(s)
sequentially until a factory returns a ClassPathElement for the given URL.
createClassPathElement in interface SpiMetaRegistryurl - The base location of the class files
IOExceptionpublic SpiMetaClassPathElement createMetaClassPathElement(ClassPathElement pathElement)
SpiMetaRegistry
createMetaClassPathElement in interface SpiMetaRegistrypathElement - A location in the class path
public SpiMetaClass createMetaClass(MetaClassPathElement location,
String className,
InputStream byteStream)
throws IOException
SpiMetaRegistry
createMetaClass in interface SpiMetaRegistrylocation - The location of a classclassName - The canonical name of the classbyteStream - The byte stream containing the class definition. This stream should be closed when finished.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||