incubator-seata icon indicating copy to clipboard operation
incubator-seata copied to clipboard

Add `seata-solon-plugin` adaptation

Open noear opened this issue 1 year ago • 3 comments

目前参考 spring 相关的适配代码翻译的。已完成的事项有:

  • 完成 seata 注解拦截器并执行拦截处理
  • 完成 solon 内部的过滤器、rpc、http 的相关上下文传递
  • 完成 数据源转换为 seata 的代理
  • 完成 ConfigXxxProperties 与 RegistryXxxProperties 的适配
  • 完成 ExtConfigurationProvider java-spi 适配

补充:

  • solon 的扩展以 "plugin" 为概念(也可以被热插拨)。以编码的形式,为模块提供了一个生命周期
  • 本适配的入口为 SeataPlugin 类

At present, refer to the spring related adaptation code translation. The items completed are:

  • Complete seata annotation interceptors and perform interception processing
  • Perform context passing for filters, rpc, http inside solon
  • Proxy for converting data sources to seata
  • Complete ConfigXxxProperties and RegistryXxxProperties adaptation
  • Complete the ExtConfigurationProvider java-spi adaptation

Add:

  • solon's extension has a "plugin" concept (which can also be hotplugged). In the form of encoding, a life cycle is provided for the module
  • The entry point for this adaptation is the SeataPlugin class

noear avatar Oct 25 '24 13:10 noear

@slievrly 是移到 'integration' 目录下是吗?已经移了。。。麻烦,帮忙看看代码问题(目前仍是 draft)

顺带请教个问题:

我是用 IDEA 打开 seata 工程。能打开写代码,但是 maven 工具的 “生命周期”(clean, install) 之类的按钮都不能点。需要用 mvn 命令行才能编译。

是需要做什么设置吗?还是我环境可能有问题(我其它项目都正常)?

noear avatar Oct 26 '24 09:10 noear

@slievrly 是移到 'integration' 目录下是吗?已经移了。。。麻烦,帮忙看看代码问题(目前仍是 draft)

顺带请教个问题:

我是用 IDEA 打开 seata 工程。能打开写代码,但是 maven 工具的 “生命周期”(clean, install) 之类的按钮都不能点。需要用 mvn 命令行才能编译。

是需要做什么设置吗?还是我环境可能有问题(我其它项目都正常)?

Execute maven commands at the top level of the entire project, not modules.

slievrly avatar Nov 05 '24 12:11 slievrly

solon is a project that targets spring. I think it's better to put it next to spring.


solon 是和 spring 对标的项目。我感觉放在 spring 边上更合适。

noear avatar Apr 19 '25 05:04 noear