Skip to content
emmby edited this page Dec 3, 2012 · 3 revisions

Install RoboGuice for Projects Using Maven

Installation for Maven Projects

Add the following pom to your <dependencies> list in your pom.xml:

        <dependency>
            <groupId>org.roboguice</groupId>
            <artifactId>roboguice</artifactId>
            <version>2.0</version>
        </dependency>

If you'd like to be able to mark certain injections as Nullable, you'll want to add the optional @Nullable annotation as well. You may not use this, but if you'd like to:

        <!-- For the optional Nullable annotation -->
        <dependency>
            <groupId>com.google.code.findbugs</groupId>
            <artifactId>jsr305</artifactId>
            <version>1.3.9</version>
        </dependency>

Table of Contents

Installation

Tutorial

Background

  • How Injection Works
  • When Injection Just Works, and when you have to call injectMembers()
  • The Difference between Global and Context-scoped Injection
  • Analyzing a Guice Stack Trace
  • What's the difference between Nullable and Optional?

How To

Examples

API Documentation

History

Maintainer Instructions

RoboGuice 1.1 (deprecated)

Clone this wiki locally