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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.eclipse.jetty.server.handler.ContextHandler createContextHandler​(App app)
      Create a ContextHandler for an App
      void setDeploymentManager​(DeploymentManager deploymentManager)
      Set the Deployment Manager
      • Methods inherited from interface org.eclipse.jetty.util.component.LifeCycle

        addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
    • Method Detail

      • setDeploymentManager

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

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