use of org.glassfish.jersey.tests.integration.jersey2704.services.HappyService in project jersey by jersey.
the class ServiceLocatorSetup method contextInitialized.
@Override
public void contextInitialized(ServletContextEvent event) {
ServiceLocator locator = ServiceLocatorUtilities.createAndPopulateServiceLocator();
ServiceLocatorUtilities.addOneConstant(locator, new HappyService());
event.getServletContext().setAttribute(ServletProperties.SERVICE_LOCATOR, locator);
}
Aggregations