Skip to content
Sebastian Hoß edited this page Sep 4, 2013 · 7 revisions

To use Guice together with OGNL, declare the following dependencies

<dependencies>
  <dependency>
    <groupId>com.github.sebhoss.contract</groupId>
    <artifactId>contract-guice</artifactId>
    <version>${contracts-version}</version>
  </dependency>
  <dependency>
    <groupId>com.github.sebhoss.contract</groupId>
    <artifactId>contract-ognl</artifactId>
    <version>${contracts-version}</version>
  </dependency>
</dependencies>

and annotate your business methods as usual.