Package org.eclipse.jetty.ee10.osgi.boot
Class OSGiMetaInfConfiguration
java.lang.Object
org.eclipse.jetty.ee10.webapp.AbstractConfiguration
org.eclipse.jetty.ee10.webapp.MetaInfConfiguration
org.eclipse.jetty.ee10.osgi.boot.OSGiMetaInfConfiguration
- All Implemented Interfaces:
Configuration
OSGiMetaInfConfiguration
Handle adding resources found in bundles.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.ee10.webapp.AbstractConfiguration
AbstractConfiguration.Builder
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Regex of symbolic names of bundles that should be considered to be on the container classpathstatic 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 classpathFields inherited from class org.eclipse.jetty.ee10.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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(WebAppContext context) Allow fragments to supply some resources that are added to the baseResource of the webapp.findJars
(WebAppContext context) Consider the fragment bundles associated with the bundle of the webapp being deployed.void
postConfigure
(WebAppContext context) Clear down after configuration.void
preConfigure
(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 Configuration>
replaces()
Get a class that this class replaces/extends.protected void
scanJars
(WebAppContext context) Methods inherited from class org.eclipse.jetty.ee10.webapp.MetaInfConfiguration
findAndFilterContainerPaths, findAndFilterWebAppPaths, findClassDirs, findExtraClasspathDirs, findExtraClasspathJars, findWebInfClassesDir, findWebInfLibJars, getAllContainerJars, scanForFragment, scanForResources, scanForTlds, scanJars, scanJars
Methods inherited from class org.eclipse.jetty.ee10.webapp.AbstractConfiguration
abort, deconfigure, destroy, getDependencies, getDependents, getHiddenClasses, getProtectedClasses, isEnabledByDefault
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.ee10.webapp.Configuration
getServerClasses, getSystemClasses, isAvailable
-
Field Details
-
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
Regex of symbolic names of bundles that should be considered to be on the container classpath- See Also:
-
FRAGMENT_AND_REQUIRED_BUNDLES
- See Also:
-
FRAGMENT_AND_REQUIRED_RESOURCES
- See Also:
-
-
Constructor Details
-
OSGiMetaInfConfiguration
public OSGiMetaInfConfiguration()
-
-
Method Details
-
replaces
Description copied from interface:Configuration
Get a class that this class replaces/extends. If this is added toConfigurations
collection that already contains a configuration of the replaced class or that reports to replace the same class, then it is replaced with this instance.- Returns:
- The class this Configuration replaces/extends or null if it replaces no other configuration
-
preConfigure
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:- SystemProperty SYS_PROP_TLD_BUNDLES
- DeployerManager.setContextAttribute CONTAINER_BUNDLE_PATTERN
- Specified by:
preConfigure
in interfaceConfiguration
- Overrides:
preConfigure
in classMetaInfConfiguration
- Parameters:
context
- The context to configure- Throws:
Exception
- if unable to pre configure- See Also:
-
scanJars
- Overrides:
scanJars
in classMetaInfConfiguration
- Throws:
Exception
-
postConfigure
Description copied from interface:Configuration
Clear down after configuration.- Specified by:
postConfigure
in interfaceConfiguration
- Overrides:
postConfigure
in classMetaInfConfiguration
- Parameters:
context
- The context to configure- Throws:
Exception
- if unable to post configure
-
findJars
Consider the fragment bundles associated with the bundle of the webapp being deployed.- Overrides:
findJars
in classMetaInfConfiguration
- Parameters:
context
- the context to find the jars in- Returns:
- the list of jar resources found within context
- Throws:
Exception
- if unable to find the jars- See Also:
-
configure
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 interfaceConfiguration
- Overrides:
configure
in classMetaInfConfiguration
- Parameters:
context
- The context to configure- Throws:
Exception
- if unable to configure- See Also:
-