Class BundleWebAppProvider

All Implemented Interfaces:
AppProvider, BundleProvider, LifeCycle

public class BundleWebAppProvider extends AbstractContextProvider 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
      Description copied from class: AbstractLifeCycle
      Method to override to start the lifecycle
      Overrides:
      doStart in class AbstractLifeCycle
      Throws:
      AbstractLifeCycle.StopException - If thrown, the lifecycle will immediately be stopped.
      Exception - If there was a problem starting. Will cause a transition to FAILED state
    • doStop

      protected void doStop() throws Exception
      Description copied from class: AbstractLifeCycle
      Method to override to stop the lifecycle
      Overrides:
      doStop in class AbstractLifeCycle
      Throws:
      Exception - If there was a problem stopping. Will cause a transition to FAILED state
    • isDeployable

      public boolean isDeployable(org.osgi.framework.Bundle bundle)
      Overrides:
      isDeployable in class AbstractContextProvider
    • 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