One does not simply @Inject in TPF

One does not simply @Inject in TPF

I remember IntelliJ IDEA constantly nudging me away from field injection and toward constructor parameters. Funny how relevant that feels now. The principle was sound: make dependencies explicit. A pipeline should say what it needs, where it comes from, and how it flows—without invisible framework magic: TPF applies that instinct to the whole application. https://pipelineframework.org

我记得 IntelliJ IDEA 总是不断地引导我放弃字段注入(field injection),转而使用构造函数参数。现在回想起来,这显得格外有意义。其原则是合理的:让依赖关系变得显式。一个流水线(pipeline)应该明确说明它需要什么、来自哪里以及如何流动——而不是依赖于隐形的框架魔法:TPF 将这种直觉应用到了整个应用程序中。https://pipelineframework.org