【问题标题】:Configuration Injection Framework配置注入框架
【发布时间】:2010-11-16 00:31:12
【问题描述】:

我最近偶然发现了以下Configuration Injection 框架。看起来很有趣,似乎符合我的需要。有没有人尝试过或知道其他一些配置注入框架?据我所知 Spring 和 Google Guice 不支持这种注入?

【问题讨论】:

  • 我这样做是因为我不想在我的应用程序中包含 guidc 或 spring。目前只有一个可用的快照。但请随意使用它,检查源代码,并向我发布一些功能请求。
  • 一个新版本 (0.3.0) 现已在 bitbucket.org/schildmeijer/coin/wiki/Home 上提供

标签: java dependency-injection code-injection


【解决方案1】:

在 Spring 中,您可以使用 PropertyPlaceHolderConfigurer 执行类似的操作,请查看 http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/ch04s07.html#beans-factory-placeholderconfigurer

【讨论】:

    【解决方案2】:

    Constretto with spring 可以满足你的需要。 Spring 也做了大部分这些事情,尤其是在 3.0 版中

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-09-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-14
      • 2010-09-14
      • 1970-01-01
      相关资源
      最近更新 更多