use of org.secnod.example.webapp.UserFactory in project dropwizard-shiro by silb.
the class ApiApplication method run.
@Override
public void run(ApiConfiguration configuration, Environment environment) throws Exception {
environment.jersey().register(new UserFactory());
environment.jersey().register(new ShiroExceptionMapper());
environment.getApplicationContext().setSessionHandler(new SessionHandler());
for (Object resource : IntegrationTestApplication.createAllIntegrationTestResources()) {
environment.jersey().register(resource);
}
}
Aggregations