-
Notifications
You must be signed in to change notification settings - Fork 1
UsingGuiceWithUEL
Sebastian Hoß edited this page Oct 5, 2013
·
6 revisions
To use Guice together with UEL, declare the following dependency and replace ${contracts-version}
with the latest release
<dependencies>
<dependency>
<groupId>com.github.sebhoss.contract</groupId>
<artifactId>contract-guice-uel</artifactId>
<version>${contracts-version}</version>
</dependency>
</dependencies>
then install the provided UEL module
import com.github.sebhoss.contract.module.DefaultUELModule; import com.google.inject.AbstractModule;
public class YourModule extends AbstractModule {
@Override protected void configure() { install(new DefaultUELModule());
// .. your bindings }
}
and annotate your business methods as usual using the unified expression language. Consult the example project for more details.