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

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

Best Java code snippets using com.jrestless.core.container.JRestlessHandlerContainer.createNewApplicationHandler (Showing top 5 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

@Override
public void reload(ResourceConfig configuration) {
  LOG.info("reloading container...");
  appHandler.onShutdown(this);
  appHandler = createNewApplicationHandler(configuration);
  appHandler.onReload(this);
  appHandler.onStartup(this);
  LOG.info("reloaded container");
}
origin: bbilger/jrestless

@Test
public void reload_ConfigGiven_ShouldReloadNewAppHandler() {
  ResourceConfig config = new ApplicationHandler().getConfiguration();
  ApplicationHandler newAppHandler = mock(ApplicationHandler.class);
  doReturn(newAppHandler).when(container).createNewApplicationHandler(any());
  container.reload(config);
  verify(newAppHandler, times(1)).onReload(container);
}
origin: bbilger/jrestless

@Test
public void reload_ConfigGiven_ShouldStartNewAppHandler() {
  ResourceConfig config = new ApplicationHandler().getConfiguration();
  ApplicationHandler newAppHandler = mock(ApplicationHandler.class);
  doReturn(newAppHandler).when(container).createNewApplicationHandler(any());
  container.reload(config);
  verify(newAppHandler, times(1)).onStartup(container);
}
origin: bbilger/jrestless

@Test
public void reload_ConfigGiven_ShouldCreateAppHandlerUsingConfiguration() {
  ResourceConfig config = new ApplicationHandler().getConfiguration();
  container.reload(config);
  verify(container, times(1)).createNewApplicationHandler(config);
}
origin: bbilger/jrestless

@Test
public void reload_ConfigGiven_ShouldResetAppHandler() {
  ResourceConfig config = new ApplicationHandler().getConfiguration();
  ApplicationHandler newAppHandler = mock(ApplicationHandler.class);
  doReturn(newAppHandler).when(container).createNewApplicationHandler(any());
  container.reload(config);
  assertSame(newAppHandler, container.getApplicationHandler());
}
com.jrestless.core.containerJRestlessHandlerContainercreateNewApplicationHandler

Popular methods of JRestlessHandlerContainer

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

Popular in Java

  • Making http post requests using okhttp
  • startActivity (Activity)
  • runOnUiThread (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • IsNull (org.hamcrest.core)
    Is the value null?
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
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