Fork me on GitHub

WOInject is a dependency injection framework for WebObjects based on Google Guice.

Features

Usage

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.

Dependencies

Install

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:
  1. Download the woinject-1.4.1-bin.zip package.
  2. Add the woinject.jar and the other required libraries to the build path.

Download

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

License

WOInject is free software released under the Apache 2 license.

Author

Henrique Prange (@hprange)

Contributors

Everton Caetano (@Everton_Caetano)

Sébastien Letélie (@sebmade)