Comments (1)
我个人觉得这个问题很好解决. 假如我们不考虑任何其他因素, 我们就考虑这个拦截器是属于哪一个 Module 的, 那相信你一定可以判断出来, 判断不出来的那些你可以放到 Base, 等到你想到了再转移都是 ok 的
既然你可以想清楚拦截器属于哪个模块, 那我是建议你把对应的拦截器放到对应的模块中. 反正 Component 框架也提供了跨组件使用其他模块的拦截器的功能.
比如登录拦截器、定位拦截器, 很多地方都会用到, 但是他们一个属于 User 模块, 一个属于(地图、Tools等等, 看你项目把这个功能归到哪个模块) 模块. 那你完全可以在各自的模块中去写, 这样子也更符合代码的边界的划分, 不会啥东西都往 base 上面放
from component.
Related Issues (20)
- afterXXXAction的优先级 HOT 5
- 请问下plugin支持增量吗? HOT 2
- 关于跳转到第三方SDK HOT 6
- 依赖高概率的找不到 HOT 4
- Failed to resolve: com.github.xiaojinzi123.Component:component-impl:1.9.2-androidx-java8 HOT 3
- 咨询一下doOpenUri的问题 HOT 1
- 请问Component与ActivityResultContract如何配合使用? HOT 3
- 如何创建并获取一个带参的Service? HOT 1
- 如何判断一个url是否可以跳转? HOT 6
- transformClassesWithComponentPlugin遇到带有签名的JAR时候会报错 HOT 16
- forwardForResult再activity异常destroy后再次调用无效 HOT 2
- 关于Gradle编译优化的提示 HOT 15
- 单 Activity多Fragment 文档不够详情 HOT 1
- 模块和工程大了之后,编译速度特别慢, 是否支持模块化编译aar吗?比如 RocketX HOT 4
- module能否独立运行测试? HOT 2
- 使用com.xiaojinzi.component.plugin 编译报错 HOT 6
- 路由文档有些模块能生成有些不能生成
- 没有IApplicationLifecycle的模块中的ServiceImpl,无法通过ServiceManager.get 获取到
- 1.9.4版本app模块依赖1.9.3版本编译的aar时,路由、服务获取都是null HOT 2
- 关于Unable to instantiate appComponentFactory java.lang.ClassNotFoundException问题 HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from component.