简体   繁体   English

关于Eclipse的访问规则Forbidden和不鼓励参考

[英]access rules on Eclipse for Forbidden and discouraged reference

After a long time of search I didn't find good response for my lack of understanding. 经过长时间的搜索,我没有找到对我缺乏理解的良好反应。

I want to understand these options in Eclipse (indigo) for Java. 我想在Eclipse(indigo)中了解Java的这些选项。 These options: 这些选项:

  • Forbidden reference (access rules) 禁止参考(访问规则)
  • Discouraged reference (access rules) 气馁参考(访问规则)

I understand annotation process in Java compil or Javadoc but not the tags @forbidden or @discouraged. 我理解Java compil或Javadoc中的注释过程,但不了解@forbidden或@discouraged标签。

Why Eclipse knows if reference is forbidden or discouraged? 为什么Eclipse知道引用是被禁止还是不鼓励?

Where is these access rules ? 这些访问规则在哪里? Is Java process or Eclipse process? 是Java进程还是Eclipse进程?

IMPORTANT : I don't develop a plugin and I am not in PDE Eclipse. 重要提示:我没有开发插件,我不在PDE Eclipse中。

Can you help me to understand the process and theory logic for these options? 你能帮助我理解这些选项的过程和理论逻辑吗?

Finally I think have find the issue. 最后我认为已经找到了问题。

Access rules in Eclipse is design on build path project per each or generally packages library. Eclipse中的访问规则是针对每个或通常包库的构建路径项目设计的。 And define 2 access possibility here as Forbidden and discouraged. 并且在这里定义2访问可能性为禁止和劝阻。

On other side, You can search issue from manifest file of OSGi bundle use. 另一方面,您可以从OSGi捆绑使用的清单文件中搜索问题。 Because this file define different access rules from use of package for others bundle. 因为这个文件定义了不同的访问规则,因为使用package for other bundle。

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

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