java.lang.Class
object. Once this method is called, further modifications are not allowed any more. To load the class, this method uses the context class loader of the current thread. It is obtained by calling getClassLoader()
. This behavior can be changed by subclassing the pool and changing the getClassLoader()
method. If the program is running on some application server, the context class loader might be inappropriate to load the class.
This method is provided for convenience. If you need more complex functionality, you should write your own class loader.
Warining: A Class object returned by this method may not work with a security manager or a signed jar file because a protection domain is not specified. @see #toClass(CtClass,java.lang.ClassLoader,ProtectionDomain) @see #getClassLoader()
java.lang.Class
object. Once this method is called, further modifications are not allowed any more. To load the class, this method uses the context class loader of the current thread. If the program is running on some application server, the context class loader might be inappropriate to load the class. This method is provided for convenience. If you need more complex functionality, you should write your own class loader.
Note: this method calls toClass()
in ClassPool
.
Warining: A Class object returned by this method may not work with a security manager or a signed jar file because a protection domain is not specified. @see #toClass(java.lang.ClassLoader,ProtectionDomain) @see ClassPool#toClass(CtClass)
java.lang.Class
object. Once this method is called, further modifications are not allowed any more. To load the class, this method uses the context class loader of the current thread. If the program is running on some application server, the context class loader might be inappropriate to load the class. This method is provided for convenience. If you need more complex functionality, you should write your own class loader.
Note: this method calls toClass()
in ClassPool
.
Warining: A Class object returned by this method may not work with a security manager or a signed jar file because a protection domain is not specified. @see #toClass(java.lang.ClassLoader,ProtectionDomain) @see ClassPool#toClass(CtClass)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|