Class AbstractContextProvider

java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.osgi.AbstractContextProvider
All Implemented Interfaces:
LifeCycle
Direct Known Subclasses:
BundleContextProvider, BundleWebAppProvider

public abstract class AbstractContextProvider extends AbstractLifeCycle
Base class for deployers that can deploy ContextHandlers into Jetty that have been discovered via OSGI either as bundles or services.
  • Constructor Details

  • Method Details

    • getServer

      public Server getServer()
    • getAttributes

      public Attributes getAttributes()
    • createContextHandler

      public ContextHandler createContextHandler(BundleMetadata metadata) throws Exception
      Throws:
      Exception
    • getEnvironmentName

      public String getEnvironmentName()
    • getContextHandlerManagement

      public Deployer getContextHandlerManagement()
    • setTldBundles

      public void setTldBundles(String tldBundles)
      Parameters:
      tldBundles - Comma separated list of bundles that contain tld jars that should be setup on the context instances created here.
    • getTldBundles

      public String getTldBundles()
      Returns:
      The list of bundles that contain tld jars that should be setup on the contexts create here.
    • isDeployable

      public boolean isDeployable(org.osgi.framework.Bundle bundle)