首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > 重量轻的DI容器为java

重量轻的DI容器为java

  • 资源大小:69.85 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: java di 容器 重量轻

资 源 简 介

"lightdi" is a Light-Weight DI Container for Java. It supports to work rapidly on Google App Engine for Java. Getting Started Get a DIContainer instance from LightDIContainerFactory and get component instance. DIContainer container = LightDIContainerFactory.getDefaultContainer();String helloWorld = container.getComponent("helloWorld");System.out.println(helloWorld); This sample will output following result. Welcome to lightdi! Using alias. String helloWorld = LightDI.inject("helloWorld");System.out.println(helloWorld); "lightdi-config.xml" "lightdi-config.xml" will be read automatically.

文 件 列 表

examples
component
example
another.xml
lightdi-config.xml
lightdi-test-config.xml
lib
lightdi-0.0.3.jar
libsrc
lightdi-0.0.3-sources.jar
license
LICENSE.txt
README.txt
VIP VIP
0.186988s