Class OSGiMetaInfConfiguration

java.lang.Object
org.eclipse.jetty.webapp.AbstractConfiguration
org.eclipse.jetty.webapp.MetaInfConfiguration
org.eclipse.jetty.osgi.boot.OSGiMetaInfConfiguration
All Implemented Interfaces:
org.eclipse.jetty.webapp.Configuration

public class OSGiMetaInfConfiguration extends org.eclipse.jetty.webapp.MetaInfConfiguration
OSGiWebInfConfiguration Handle adding resources found in bundle fragments, and add them into the
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.eclipse.jetty.webapp.MetaInfConfiguration

    org.eclipse.jetty.webapp.MetaInfConfiguration.ContainerPathNameMatcher, org.eclipse.jetty.webapp.MetaInfConfiguration.WebAppPathNameMatcher

    Nested classes/interfaces inherited from interface org.eclipse.jetty.webapp.Configuration

    org.eclipse.jetty.webapp.Configuration.Wrapper, org.eclipse.jetty.webapp.Configuration.WrapperFunction
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Regex of symbolic names of bundles that should be considered to be on the container classpath
    static final String
     
    static final String
     
    static final String
    Comma separated list of symbolic names of bundles that contain tlds that should be considered as on the container classpath

    Fields inherited from class org.eclipse.jetty.webapp.MetaInfConfiguration

    __allScanTypes, CACHED_CONTAINER_FRAGMENTS, CACHED_CONTAINER_RESOURCES, CACHED_CONTAINER_TLDS, CONTAINER_JAR_PATTERN, DEFAULT_USE_CONTAINER_METAINF_CACHE, METAINF_FRAGMENTS, METAINF_RESOURCES, METAINF_TLDS, RESOURCE_DIRS, USE_CONTAINER_METAINF_CACHE, WEBINF_JAR_PATTERN

    Fields inherited from interface org.eclipse.jetty.webapp.Configuration

    ATTR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configure(org.eclipse.jetty.webapp.WebAppContext context)
    Allow fragments to supply some resources that are added to the baseResource of the webapp.
    protected List<org.eclipse.jetty.util.resource.Resource>
    findJars(org.eclipse.jetty.webapp.WebAppContext context)
    Consider the fragment bundles associated with the bundle of the webapp being deployed.
    void
    postConfigure(org.eclipse.jetty.webapp.WebAppContext context)
     
    void
    preConfigure(org.eclipse.jetty.webapp.WebAppContext context)
    Check to see if there have been any bundle symbolic names added of bundles that should be regarded as being on the container classpath, and scanned for fragments, tlds etc etc.
    Class<? extends org.eclipse.jetty.webapp.Configuration>
     
    protected void
    scanJars(org.eclipse.jetty.webapp.WebAppContext context)
     

    Methods inherited from class org.eclipse.jetty.webapp.MetaInfConfiguration

    findAndFilterContainerPaths, findAndFilterWebAppPaths, findClassDirs, findExtraClasspathDirs, findExtraClasspathJars, findWebInfClassesDir, findWebInfLibJars, getAllContainerJars, getTlds, getTlds, scanForFragment, scanForResources, scanForTlds, scanJars, scanJars

    Methods inherited from class org.eclipse.jetty.webapp.AbstractConfiguration

    abort, addDependencies, addDependencies, addDependents, addDependents, cloneConfigure, deconfigure, destroy, expose, getDependencies, getDependents, getServerClasses, getSystemClasses, hide, isEnabledByDefault, protect, protectAndExpose

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.eclipse.jetty.webapp.Configuration

    isAvailable
  • Field Details

    • SYS_PROP_TLD_BUNDLES

      public static final String SYS_PROP_TLD_BUNDLES
      Comma separated list of symbolic names of bundles that contain tlds that should be considered as on the container classpath
      See Also:
    • CONTAINER_BUNDLE_PATTERN

      public static final String CONTAINER_BUNDLE_PATTERN
      Regex of symbolic names of bundles that should be considered to be on the container classpath
      See Also:
    • FRAGMENT_AND_REQUIRED_BUNDLES

      public static final String FRAGMENT_AND_REQUIRED_BUNDLES
      See Also:
    • FRAGMENT_AND_REQUIRED_RESOURCES

      public static final String FRAGMENT_AND_REQUIRED_RESOURCES
      See Also:
  • Constructor Details

    • OSGiMetaInfConfiguration

      public OSGiMetaInfConfiguration()
  • Method Details

    • replaces

      public Class<? extends org.eclipse.jetty.webapp.Configuration> replaces()
    • preConfigure

      public void preConfigure(org.eclipse.jetty.webapp.WebAppContext context) throws Exception
      Check to see if there have been any bundle symbolic names added of bundles that should be regarded as being on the container classpath, and scanned for fragments, tlds etc etc. This can be defined in:
      1. SystemProperty SYS_PROP_TLD_BUNDLES
      2. DeployerManager.setContextAttribute CONTAINER_BUNDLE_PATTERN
      We also allow individual bundles to specify particular bundles that might include TLDs via the Require-Tlds MANIFEST.MF header.
      Specified by:
      preConfigure in interface org.eclipse.jetty.webapp.Configuration
      Overrides:
      preConfigure in class org.eclipse.jetty.webapp.MetaInfConfiguration
      Throws:
      Exception
      See Also:
      • WebInfConfiguration.preConfigure(org.eclipse.jetty.webapp.WebAppContext)
    • scanJars

      protected void scanJars(org.eclipse.jetty.webapp.WebAppContext context) throws Exception
      Overrides:
      scanJars in class org.eclipse.jetty.webapp.MetaInfConfiguration
      Throws:
      Exception
    • postConfigure

      public void postConfigure(org.eclipse.jetty.webapp.WebAppContext context) throws Exception
      Specified by:
      postConfigure in interface org.eclipse.jetty.webapp.Configuration
      Overrides:
      postConfigure in class org.eclipse.jetty.webapp.MetaInfConfiguration
      Throws:
      Exception
    • findJars

      protected List<org.eclipse.jetty.util.resource.Resource> findJars(org.eclipse.jetty.webapp.WebAppContext context) throws Exception
      Consider the fragment bundles associated with the bundle of the webapp being deployed.
      Overrides:
      findJars in class org.eclipse.jetty.webapp.MetaInfConfiguration
      Throws:
      Exception
      See Also:
      • MetaInfConfiguration.findJars(org.eclipse.jetty.webapp.WebAppContext)
    • configure

      public void configure(org.eclipse.jetty.webapp.WebAppContext context) throws Exception
      Allow fragments to supply some resources that are added to the baseResource of the webapp. The resources can be either prepended or appended to the baseResource.
      Specified by:
      configure in interface org.eclipse.jetty.webapp.Configuration
      Overrides:
      configure in class org.eclipse.jetty.webapp.MetaInfConfiguration
      Throws:
      Exception
      See Also:
      • WebInfConfiguration.configure(org.eclipse.jetty.webapp.WebAppContext)