package my.app; import com.google.inject.Module; import com.woinject.InjectableApplication; import com.woinject.WOInject; public class Application extends InjectableApplication { public static void main(String[] args) { WOInject.init("my.app.Application", args); } @Override protected Module[] modules() { return new Module[] { new MyModule() }; } }
See the Complete Guide for more details about the WOInject usage.
The Javadoc API documents are available online.
Maven users have to add the dependency declaration:
<dependency> <groupId>com.woinject</groupId> <artifactId>woinject</artifactId> <version>1.4.1</version> </dependency>Non Maven users have to:
You can download either the the source or the binaries of this project.
You can also clone the project with Git by running:
$ git clone git://github.com/hprange/woinject
WOInject is free software released under the Apache 2 license.
Henrique Prange (@hprange)
Everton Caetano (@Everton_Caetano)
Sébastien Letélie (@sebmade)