Search in sources :

Example 1 with HappyService

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);
}
Also used : ServiceLocator(org.glassfish.hk2.api.ServiceLocator) HappyService(org.glassfish.jersey.tests.integration.jersey2704.services.HappyService)

Aggregations

ServiceLocator (org.glassfish.hk2.api.ServiceLocator)1 HappyService (org.glassfish.jersey.tests.integration.jersey2704.services.HappyService)1