简体   繁体   English

隐藏JAR中的公共类

[英]Hide public classes in JAR

Does anyone know the way to hide public classes in JAR file. 有谁知道在JAR文件中隐藏公共类的方法。 In other words is there any way to create "jar-visible" classes. 换句话说,有没有办法创建“jar-visible”类。 The point is to hide public classes in my JAR file and provide to my JAR-users access to specified classes. 关键是要在我的JAR文件中隐藏公共类,并向我的JAR用户提供对指定类的访问。 Fe similar thing is implemented in OSGI framework with the help of "Export-Package" parameter in MANIFEST.MF 在MANIFEST框架中借助MANIFEST.MF中的“Export-Package”参数实现类似的功能

使用ProGuard( http://proguard.sourceforge.net/ )lib。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM