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;
}
Aggregations