Interface AppProvider

All Superinterfaces:
org.eclipse.jetty.util.component.LifeCycle
All Known Implementing Classes:
ScanningAppProvider, WebAppProvider

public interface AppProvider extends org.eclipse.jetty.util.component.LifeCycle
Object responsible for providing Apps to the DeploymentManager
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle

    org.eclipse.jetty.util.component.LifeCycle.Listener
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.jetty.server.handler.ContextHandler
    Create a ContextHandler for an App
    void
    Set the Deployment Manager

    Methods inherited from interface org.eclipse.jetty.util.component.LifeCycle

    addEventListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, start, stop
  • Method Details

    • setDeploymentManager

      void setDeploymentManager(DeploymentManager deploymentManager)
      Set the Deployment Manager
      Parameters:
      deploymentManager - the deployment manager
      Throws:
      IllegalStateException - if the provider LifeCycle.isRunning().
    • createContextHandler

      org.eclipse.jetty.server.handler.ContextHandler createContextHandler(App app) throws Exception
      Create a ContextHandler for an App
      Parameters:
      app - The App
      Returns:
      A ContextHandler
      Throws:
      IOException - if unable to create context
      Exception - if unable to create context