-
Notifications
You must be signed in to change notification settings - Fork 1
UsingGuiceWithMVEL
Sebastian Hoß edited this page Sep 4, 2013
·
7 revisions
To use Guice together with MVEL, 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-mvel</artifactId>
<version>${contracts-version}</version>
</dependency>
</dependencies>then install the provided MVEL module
import com.github.sebhoss.contract.module.DefaultMVELModule; import com.google.inject.AbstractModule;public class YourModule extends AbstractModule {@Override protected void configure() { install(new DefaultMVELModule());// .. your bindings }}
and annotate your business methods as usual.