public class MavenWebInfConfiguration extends WebInfConfiguration
Configuration.ClassList| Modifier and Type | Field and Description |
|---|---|
protected Resource |
_originalResourceBase |
protected java.util.List<Resource> |
_unpackedOverlayResources |
protected static int |
COUNTER |
static java.lang.String |
RESOURCE_BASES_POST_OVERLAY |
_preUnpackBaseResource, CONTAINER_JAR_PATTERN, RESOURCE_DIRS, TEMPDIR_CONFIGURED, WEBINF_JAR_PATTERNATTR| Constructor and Description |
|---|
MavenWebInfConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(WebAppContext context)
Configure WebApp.
|
void |
deconfigure(WebAppContext context)
DeConfigure WebApp.
|
protected java.util.List<Resource> |
findClassDirs(WebAppContext context)
Add in the classes dirs from test/classes and target/classes
|
protected java.util.List<Resource> |
findJars(WebAppContext context)
Get the jars to examine from the files from which we have
synthesized the classpath.
|
void |
postConfigure(WebAppContext context)
Clear down after configuration.
|
void |
preConfigure(WebAppContext context)
Set up for configuration.
|
void |
unpack(WebAppContext context) |
protected Resource |
unpackOverlay(WebAppContext context,
Overlay overlay) |
cloneConfigure, configureTempDirectory, findExtraClasspathDirs, findExtraClasspathJars, findWebInfClassesDir, findWebInfLibJars, getCanonicalNameForWebAppTmpDir, makeTempDirectory, resolveTempDirectorydestroypublic static final java.lang.String RESOURCE_BASES_POST_OVERLAY
protected static int COUNTER
protected Resource _originalResourceBase
protected java.util.List<Resource> _unpackedOverlayResources
public void configure(WebAppContext context) throws java.lang.Exception
Configuration
Typically this step applies the discovered configuration resources to
either the WebAppContext or the associated MetaData.
configure in interface Configurationconfigure in class WebInfConfigurationcontext - The context to configurejava.lang.Exception - if unable to configureWebInfConfiguration.configure(org.eclipse.jetty.webapp.WebAppContext)public void preConfigure(WebAppContext context) throws java.lang.Exception
ConfigurationTypically this step discovers configuration resources
preConfigure in interface ConfigurationpreConfigure in class WebInfConfigurationcontext - The context to configurejava.lang.Exception - if unable to pre configureWebInfConfiguration.preConfigure(org.eclipse.jetty.webapp.WebAppContext)public void postConfigure(WebAppContext context) throws java.lang.Exception
ConfigurationpostConfigure in interface ConfigurationpostConfigure in class AbstractConfigurationcontext - The context to configurejava.lang.Exception - if unable to post configureAbstractConfiguration.postConfigure(org.eclipse.jetty.webapp.WebAppContext)public void deconfigure(WebAppContext context) throws java.lang.Exception
Configurationdeconfigure in interface Configurationdeconfigure in class WebInfConfigurationcontext - The context to configurejava.lang.Exception - if unable to deconfigureWebInfConfiguration.deconfigure(org.eclipse.jetty.webapp.WebAppContext)public void unpack(WebAppContext context) throws java.io.IOException
unpack in class WebInfConfigurationjava.io.IOExceptionWebInfConfiguration.unpack(org.eclipse.jetty.webapp.WebAppContext)protected java.util.List<Resource> findJars(WebAppContext context) throws java.lang.Exception
findJars in class WebInfConfigurationcontext - the web app contextjava.lang.Exception - if unable to find the jarsprotected java.util.List<Resource> findClassDirs(WebAppContext context) throws java.lang.Exception
findClassDirs in class WebInfConfigurationjava.lang.ExceptionWebInfConfiguration.findClassDirs(org.eclipse.jetty.webapp.WebAppContext)protected Resource unpackOverlay(WebAppContext context, Overlay overlay) throws java.io.IOException
java.io.IOExceptionCopyright © 1995–2017 Webtide. All rights reserved.