use of io.crnk.example.dropwizard.simple.domain.repository.ProjectRepository in project crnk-framework by crnk-project.
the class DropwizardService method run.
@Override
public void run(DropwizardConfiguration dropwizardConfiguration, Environment environment) throws Exception {
// here we make use of a module as example instead of using service discovery (CDI, Spring, etc.)
// tag::docs[]
SimpleModule module = new SimpleModule("example");
module.addRepository(new ProjectRepository());
CrnkFeature crnkFeature = new CrnkFeature();
crnkFeature.addModule(module);
environment.jersey().register(crnkFeature);
// end::docs[]
}
Aggregations