/** * Inform this container that the server has been started. * * This method must be implicitly called after the server containing this container is started. */ void onServerStart() { this.appHandler.onStartup(this); }
/** * Inform this container that the server has been started. * <p/> * This method must be implicitly called after the server containing this container is started. */ void onServerStart() { appHandler.onStartup(this); }
@Override public void start() { super.start(); appHandler.onStartup(this); }
/** * Inform this container that the server has been started. * This method must be implicitly called after the server containing this container is started. * * @throws java.lang.Exception if a problem occurred during server startup. */ @Override protected void doStart() throws Exception { super.doStart(); appHandler.onStartup(this); }
public NettyHttpContainer(Application application) { this.appHandler = new ApplicationHandler(application); this.appHandler.onStartup(this); }
@Override public void reload(ResourceConfig configuration) { appHandler.onShutdown(this); appHandler = new ApplicationHandler(configuration); appHandler.onReload(this); appHandler.onStartup(this); }
@Override public void reload(final ResourceConfig configuration) { appHandler.onShutdown(this); appHandler = new ApplicationHandler(configuration); appHandler.onReload(this); appHandler.onStartup(this); }
@Override public void reload(final ResourceConfig configuration) { appHandler.onShutdown(this); appHandler = new ApplicationHandler(configuration.register(new SimpleBinder())); scheduler = new ScheduledThreadPoolExecutor(2, new DaemonFactory(TimeoutDispatcher.class)); appHandler.onReload(this); appHandler.onStartup(this); }
@Override public void reload(final ResourceConfig configuration) { appHandler.onShutdown(this); appHandler = new ApplicationHandler(configuration, new GrizzlyBinder()); appHandler.onReload(this); appHandler.onStartup(this); cacheConfigSetStatusOverSendError(); cacheConfigEnableLeadingContextPathSlashes(); }
@Override public void reload(final ResourceConfig configuration) { appHandler.onShutdown(this); appHandler = new ApplicationHandler(configuration.register(new JettyBinder())); appHandler.onReload(this); appHandler.onStartup(this); cacheConfigSetStatusOverSendError(); }
/** * Constructs a new handler filter with a Jax RS application object. * @param jaxApplication The JAX RS application to load */ JerseyHandlerFilter(Application jaxApplication) { Timer.start("JERSEY_FILTER_CONSTRUCTOR"); app = jaxApplication; jersey = new ApplicationHandler(app); jersey.onStartup(this); Timer.stop("JERSEY_FILTER_CONSTRUCTOR"); }
/** * Shuts down and restarts the application handler in the current container. The <code>ApplicationHandler</code> * object is re-initialized with the <code>Application</code> object initially set in the <code>LambdaContainer.getInstance()</code> * call. */ @Override public void reload() { Timer.start("JERSEY_RELOAD_DEFAULT"); jersey.onShutdown(this); jersey = new ApplicationHandler(app); jersey.onReload(this); jersey.onStartup(this); Timer.stop("JERSEY_RELOAD_DEFAULT"); }
/** * Restarts the application handler and configures a different <code>Application</code> object. The new application * resets the one currently configured in the container. * @param resourceConfig An initialized Application */ @Override public void reload(ResourceConfig resourceConfig) { Timer.start("JERSEY_RELOAD_CONFIG"); jersey.onShutdown(this); app = resourceConfig; jersey = new ApplicationHandler(resourceConfig); jersey.onReload(this); jersey.onStartup(this); Timer.stop("JERSEY_RELOAD_CONFIG"); } }
/** * Inform this container that the server has been started. * <p/> * This method must be implicitly called after the server containing this container is started. */ void onServerStart() { appHandler.onStartup(this); }
/** * Inform this container that the server has been started. * * This method must be implicitly called after the server containing this container is started. */ public void onStartup() { LOG.info("starting container..."); appHandler.onStartup(this); LOG.info("started container"); }
@Override public void start() { super.start(); appHandler.onStartup(this); }
@Override public void reload(final ResourceConfig configuration) { appHandler.onShutdown(this); appHandler = new ApplicationHandler(configuration); appHandler.onReload(this); appHandler.onStartup(this); }
@Test public void onStartup_ShouldStartAppHandler() { container.onStartup(); verify(appHandler, times(1)).onStartup(container); }
@Override public void reload(final ResourceConfig configuration) { appHandler.onShutdown(this); appHandler = new ApplicationHandler(configuration.register(new SimpleBinder())); scheduler = new ScheduledThreadPoolExecutor(2, new DaemonFactory(TimeoutDispatcher.class)); appHandler.onReload(this); appHandler.onStartup(this); }
@Override public void reload(final ResourceConfig configuration) { appHandler.onShutdown(this); appHandler = new ApplicationHandler(configuration, new GrizzlyBinder()); appHandler.onReload(this); appHandler.onStartup(this); cacheConfigSetStatusOverSendError(); cacheConfigEnableLeadingContextPathSlashes(); }