Search in sources :

Example 1 with Container

use of org.glassfish.jersey.server.spi.Container in project jersey by jersey.

the class ReloadTest method configure.

@Override
protected ResourceConfig configure() {
    enable(TestProperties.LOG_TRAFFIC);
    final ResourceConfig result = new ResourceConfig(ArrivalsResource.class);
    result.registerInstances(new AbstractContainerLifecycleListener() {

        @Override
        public void onStartup(Container container) {
            ReloadTest.container = container;
        }
    });
    return result;
}
Also used : Container(org.glassfish.jersey.server.spi.Container) AbstractContainerLifecycleListener(org.glassfish.jersey.server.spi.AbstractContainerLifecycleListener) ResourceConfig(org.glassfish.jersey.server.ResourceConfig)

Aggregations

ResourceConfig (org.glassfish.jersey.server.ResourceConfig)1 AbstractContainerLifecycleListener (org.glassfish.jersey.server.spi.AbstractContainerLifecycleListener)1 Container (org.glassfish.jersey.server.spi.Container)1