首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > Annotation and helper classes to add C++ style friend functionality to Java

Annotation and helper classes to add C++ style friend functionality to Java

  • 资源大小:4.46 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

While Java access modifiers effectively restrict access to classes, methods, and fields, corner cases exist where it is advantageous to expose functionality to a subset of callers outside the preferred scope. For example, one common data model segregates DAOs from handlers and beans in order to restrict public access to the persistence mechanism. However, those beans often need to hold persistence-related data, such as a UID, internally. The DAO must be able to read and modify those values, but their mutators (and often their accessors) should not be accessible publicly. This lightweight library provides a means of achieving that goal.

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP