类 CustomizedLoaderClassPath
- java.lang.Object
-
- org.apache.dubbo.common.bytecode.CustomizedLoaderClassPath
-
- 所有已实现的接口:
javassist.ClassPath
public class CustomizedLoaderClassPath extends Object implements javassist.ClassPath
A class search-path representing a class loader.It is used for obtaining a class file from the given class loader by
getResourceAsStream(). TheLoaderClassPathrefers to the class loader throughWeakReference. If the class loader is garbage collected, the other search pathes are examined.The given class loader must have both
getResourceAsStream()andgetResource().- 作者:
- Bill Burke, Shigeru Chiba
-
-
构造器概要
构造器 构造器 说明 CustomizedLoaderClassPath(ClassLoader cl)Creates a search path representing a class loader.
-
-
-
构造器详细资料
-
CustomizedLoaderClassPath
public CustomizedLoaderClassPath(ClassLoader cl)
Creates a search path representing a class loader.
-
-
方法详细资料
-
openClassfile
public InputStream openClassfile(String classname)
Obtains a class file from the class loader. This method callsgetResourceAsStream(String)on the class loader.- 指定者:
openClassfile在接口中javassist.ClassPath
-
find
public URL find(String classname)
Obtains the URL of the specified class file. This method callsgetResource(String)on the class loader.- 指定者:
find在接口中javassist.ClassPath- 返回:
- null if the class file could not be found.
-
close
public void close()
Closes this class path.
-
-