Codota Logo
JRestlessHandlerContainer.onShutdown
Code IndexAdd Codota to your IDE (free)

How to use
onShutdown
method
in
com.jrestless.core.container.JRestlessHandlerContainer

Best Java code snippets using com.jrestless.core.container.JRestlessHandlerContainer.onShutdown (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: bbilger/jrestless

/**
 * Stops the container.
 * <p>
 * May be called once, only.
 * <p>
 * {@link #start()} must be called, first.
 */
public final void stop() {
  checkState(started, "container has already been stopped");
  container.onShutdown();
  started = false;
}
origin: bbilger/jrestless

@Test
public void onShutdown_ShouldShutdownAppHandler() {
  container.onShutdown();
  verify(appHandler, times(1)).onShutdown(container);
}
origin: bbilger/jrestless

@Test
public void stop_Running_ShouldDelegateStopToContainer() {
  @SuppressWarnings("unchecked")
  JRestlessHandlerContainer<JRestlessContainerRequest> customContainer = mock(JRestlessHandlerContainer.class);
  SimpleRequestHandlerImpl customHandler = new SimpleRequestHandlerImpl();
  customHandler.init(customContainer);
  customHandler.start();
  customHandler.stop();
  verify(customContainer).onShutdown();
}
com.jrestless.core.containerJRestlessHandlerContaineronShutdown

Javadoc

Inform this container that the server is being stopped. This method must be implicitly called before the server containing this container is stopped.

Popular methods of JRestlessHandlerContainer

  • handleRequest
    Delegates the container request to the application.
  • <init>
  • createContainerRequest
    Creates a new ContainerRequest for the given input.
  • createNewApplicationHandler
  • getConfiguration
  • onStartup
    Inform this container that the server has been started. This method must be implicitly called after
  • reload
  • getApplicationHandler

Popular in Java

  • Reading from database using SQL prepared statement
  • getApplicationContext (Context)
  • onRequestPermissionsResult (Fragment)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • Collectors (java.util.stream)
  • Reference (javax.naming)
  • JLabel (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now