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