Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

讨论:一个模块对外接口的API怎么更好的规划 #10

Open
Tracked by #1
cybertheye opened this issue Nov 8, 2023 · 0 comments
Open
Tracked by #1

讨论:一个模块对外接口的API怎么更好的规划 #10

cybertheye opened this issue Nov 8, 2023 · 0 comments
Assignees
Labels
help wanted Extra attention is needed VIP L3 重要程度等级3 维护工作 重构

Comments

@cybertheye
Copy link
Owner

cybertheye commented Nov 8, 2023

具体场景:

比如,在ComponentScanner

在后面 增加了 Servletinformation 之后,其实是添加了一个元数据

那么后面比如我要 容器初始化的时候,先去将 loadOnStartup 1 servlet 先实例化

那么这个时候,我希望这个 ComponentScanner 提供一个功能是 把 loadOnStartup 的所有给返回过来

那么就要涉及到 接口增加功能了, 那么这个 功能适不适合 增加在 ComponentScanner里面呢?

SOLID原则,

那么如果不放在这里,那么需要接口类的继承等实现方式,那么又该怎么做呢?

@cybertheye cybertheye added help wanted Extra attention is needed 重构 维护工作 VIP L3 重要程度等级3 labels Nov 8, 2023
@cybertheye cybertheye self-assigned this Nov 8, 2023
@cybertheye cybertheye moved this to Todo in 代号-兔头 Nov 9, 2023
@cybertheye cybertheye moved this from Todo 📌 to In Progress 🏃‍♂️ in 代号-兔头 Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed VIP L3 重要程度等级3 维护工作 重构
Projects
Status: In Progress 🏃‍♂️
Development

No branches or pull requests

1 participant