"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