Package org.eclipse.jetty.osgi.boot
Class OSGiWebInfConfiguration
- java.lang.Object
-
- org.eclipse.jetty.webapp.AbstractConfiguration
-
- org.eclipse.jetty.webapp.WebInfConfiguration
-
- org.eclipse.jetty.osgi.boot.OSGiWebInfConfiguration
-
- All Implemented Interfaces:
Configuration
public class OSGiWebInfConfiguration extends WebInfConfiguration
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.WebInfConfiguration
WebInfConfiguration.ContainerPathNameMatcher, WebInfConfiguration.WebAppPathNameMatcher
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.webapp.Configuration
Configuration.ClassList, Configuration.Wrapper, Configuration.WrapperFunction
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONTAINER_BUNDLE_PATTERNRegex of symbolic names of bundles that should be considered to be on the container classpathstatic java.lang.StringFRAGMENT_AND_REQUIRED_BUNDLESstatic java.lang.StringFRAGMENT_AND_REQUIRED_RESOURCESstatic java.lang.StringSYS_PROP_TLD_BUNDLESComma 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.WebInfConfiguration
_preUnpackBaseResource, CONTAINER_JAR_PATTERN, RESOURCE_DIRS, TEMPDIR_CONFIGURED, WEBINF_JAR_PATTERN
-
Fields inherited from interface org.eclipse.jetty.webapp.Configuration
ATTR
-
-
Constructor Summary
Constructors Constructor Description OSGiWebInfConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(WebAppContext context)Allow fragments to supply some resources that are added to the baseResource of the webapp.protected java.util.List<Resource>findJars(WebAppContext context)Consider the fragment bundles associated with the bundle of the webapp being deployed.voidpostConfigure(WebAppContext context)Clear down after configuration.voidpreConfigure(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.-
Methods inherited from class org.eclipse.jetty.webapp.WebInfConfiguration
cloneConfigure, configureTempDirectory, deconfigure, findAndFilterContainerPaths, findAndFilterWebAppPaths, findClassDirs, findExtraClasspathDirs, findExtraClasspathJars, findWebInfClassesDir, findWebInfLibJars, getCanonicalNameForWebAppTmpDir, getResourceBaseName, makeTempDirectory, resolveTempDirectory, unpack
-
Methods inherited from class org.eclipse.jetty.webapp.AbstractConfiguration
destroy
-
-
-
-
Field Detail
-
SYS_PROP_TLD_BUNDLES
public static final java.lang.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:
- Constant Field Values
-
CONTAINER_BUNDLE_PATTERN
public static final java.lang.String CONTAINER_BUNDLE_PATTERN
Regex of symbolic names of bundles that should be considered to be on the container classpath- See Also:
- Constant Field Values
-
FRAGMENT_AND_REQUIRED_BUNDLES
public static final java.lang.String FRAGMENT_AND_REQUIRED_BUNDLES
- See Also:
- Constant Field Values
-
FRAGMENT_AND_REQUIRED_RESOURCES
public static final java.lang.String FRAGMENT_AND_REQUIRED_RESOURCES
- See Also:
- Constant Field Values
-
-
Method Detail
-
preConfigure
public void preConfigure(WebAppContext context) throws java.lang.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:- SystemProperty SYS_PROP_TLD_BUNDLES
- DeployerManager.setContextAttribute CONTAINER_BUNDLE_PATTERN
- Specified by:
preConfigurein interfaceConfiguration- Overrides:
preConfigurein classWebInfConfiguration- Parameters:
context- The context to configure- Throws:
java.lang.Exception- if unable to pre configure- See Also:
WebInfConfiguration.preConfigure(org.eclipse.jetty.webapp.WebAppContext)
-
postConfigure
public void postConfigure(WebAppContext context) throws java.lang.Exception
Description copied from interface:ConfigurationClear down after configuration.- Specified by:
postConfigurein interfaceConfiguration- Overrides:
postConfigurein classAbstractConfiguration- Parameters:
context- The context to configure- Throws:
java.lang.Exception- if unable to post configure
-
findJars
protected java.util.List<Resource> findJars(WebAppContext context) throws java.lang.Exception
Consider the fragment bundles associated with the bundle of the webapp being deployed.- Overrides:
findJarsin classWebInfConfiguration- Parameters:
context- the context to find the jars in- Returns:
- the list of jar resources found within context
- Throws:
java.lang.Exception- if unable to find the jars- See Also:
WebInfConfiguration.findJars(org.eclipse.jetty.webapp.WebAppContext)
-
configure
public void configure(WebAppContext context) throws java.lang.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:
configurein interfaceConfiguration- Overrides:
configurein classWebInfConfiguration- Parameters:
context- The context to configure- Throws:
java.lang.Exception- if unable to configure- See Also:
WebInfConfiguration.configure(org.eclipse.jetty.webapp.WebAppContext)
-
-