public class CustomizedLoaderClassPath extends Object implements javassist.ClassPath
It is used for obtaining a class file from the given
class loader by getResourceAsStream().
The LoaderClassPath refers to the class loader through
WeakReference. If the class loader is garbage collected,
the other search pathes are examined.
The given class loader must have both getResourceAsStream()
and getResource().
| 构造器和说明 |
|---|
CustomizedLoaderClassPath(ClassLoader cl)
Creates a search path representing a class loader.
|
public CustomizedLoaderClassPath(ClassLoader cl)
public InputStream openClassfile(String classname)
getResourceAsStream(String)
on the class loader.openClassfile 在接口中 javassist.ClassPathpublic URL find(String classname)
getResource(String)
on the class loader.find 在接口中 javassist.ClassPathpublic void close()
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.