b) 自定义类加载器(Custom ClassLoader) 通过自定义类加载器,可以加载加密过的.class 文件,在加载时使用自定义的类 加载器解密的方式提高代码的安全性。
基于10个网页-相关网页
更新 上个月的代码以使用自定义类加载器方法是很容易的。
Updating the code from last month to use the custom classloader approach is easy.
真正的实现可能需要其他自定义类加载器,该加载器将搜索为编译提供的某些类路径。
A real implementation may need another custom class loader that would search through some classpath provided just for the compilation.
注意我是如何使用自定义的类加载器访问这个类的,该加载器按照请求加载编译后的字节码。
Notice how I access the class from a custom class loader, which loads the compiled bytecodes upon request.
应用推荐