返回榜单

easymock / objenesis

其实,通过标准反射机制实例化对象在 Java 中相当简单。不过,在许多情况下,需要超越反射所能提供的功能。例如,如果没有公共构造函数,就可以绕过构造函数代码或设置 final 字段。有多种巧妙但较为复杂的解决方案,而该库则提供了简单的方法来实现这些功能。您可以在官方网站上找到相关信息。

仓库 Star
630总榜 #53,525
Fork
98
最近推送
2 天前更新
仓库创建
2013 年创建
应用与完整系统通用JavaApache-2.0 · 宽松,可直接商用
查看源码

用途与标签

项目原文 · GitHub
Okay, it's pretty easy to instantiate objects in Java through standard reflection. However there are many cases where you need to go beyond what reflection provides. For example, if there's no public constructor, you want to bypass the constructor code, or set final fields. There are numerous clever (but fiddly) approaches to getting around this and this library provides a simple way to get at them. You will find the official site here.

Star 走势

63063163111-06 · 63010-0810-1310-1810-2310-2811-0211-06

首次收录 2026-11-06采集时间 2026-11-06 11:02 UTC数据来源许可证原文

介绍根据项目公开资料整理,未经实际测试。 · GitHub 仓库 Star,不是独立使用人数 · 商用三档依据许可证元数据自动分类;具体义务需结合实际使用方式核对。未知不等于禁止商用。