-
Notifications
You must be signed in to change notification settings - Fork 1
UsingGuiceWithMVEL
Sebastian Hoß edited this page Oct 5, 2013
·
7 revisions
To use Guice together with MVEL, declare the following dependency and replace ${contracts-version} with the latest release
<dependencies>
<dependency>
<groupId>com.github.sebhoss.contract</groupId>
<artifactId>contract-guice-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 using MVEL. Consult the example project for more details.