Class BundleWebAppProvider

java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.osgi.boot.AbstractWebAppProvider
org.eclipse.jetty.osgi.boot.BundleWebAppProvider
All Implemented Interfaces:
org.eclipse.jetty.deploy.AppProvider, BundleProvider, org.eclipse.jetty.util.component.LifeCycle

public class BundleWebAppProvider extends AbstractWebAppProvider implements BundleProvider
BundleWebAppProvider

A Jetty Provider that knows how to deploy a WebApp contained inside a Bundle.

  • Constructor Details

  • Method Details

    • doStart

      protected void doStart() throws Exception
      Overrides:
      doStart in class org.eclipse.jetty.util.component.AbstractLifeCycle
      Throws:
      Exception
    • doStop

      protected void doStop() throws Exception
      Overrides:
      doStop in class org.eclipse.jetty.util.component.AbstractLifeCycle
      Throws:
      Exception
    • bundleAdded

      public boolean bundleAdded(org.osgi.framework.Bundle bundle) throws Exception
      A bundle has been added that could be a webapp
      Specified by:
      bundleAdded in interface BundleProvider
      Parameters:
      bundle - the bundle
      Throws:
      Exception
    • bundleRemoved

      public boolean bundleRemoved(org.osgi.framework.Bundle bundle) throws Exception
      Bundle has been removed. If it was a webapp we deployed, undeploy it.
      Specified by:
      bundleRemoved in interface BundleProvider
      Parameters:
      bundle - the bundle
      Returns:
      true if this was a webapp we had deployed, false otherwise
      Throws:
      Exception