Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Instantiating Condition

未关闭
#1 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
30/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
冷清
技术栈
java, spring
领域
backend

调研方向

先阅读 issue 中提到的 RequiresCondition 扩展以及当前的 conditionClass.getConstructor().newInstance() 路径。调查如何将 conditions 作为 CDI 或 Spring bean 进行管理,以及如何访问 request-scoped context;当实例化和 request-context 行为具有明确且达成共识的设计和实现范围时,这项工作就完成了。

由索引模型根据 Issue 内容生成。

描述

I found this in the RequiresCondition extension.

conditionClass.getConstructor().newInstance();

In Spring, Condition can be defined as a bean and can evaluate the environment, properties, bean existence, etc., before instantiating a bean.

In addition, for example, when in an HTTP request scope, if the payment method (PAYPAL or STRIPE in the example) is selected in the browser and passed to the request, how should we handle it within that scope?

Here, the condition may require a context concept that is bound to the execution context.

主要语言
Java
星标
0
派生
0
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。