public class MavenWebInfConfiguration extends WebInfConfiguration
Modifier and Type | Field and Description |
---|---|
protected Resource |
_originalResourceBase |
protected List<Resource> |
_unpackedOverlayResources |
protected static int |
COUNTER |
_preUnpackBaseResource, CONTAINER_JAR_PATTERN, RESOURCE_URLS, TEMPDIR_CONFIGURED, WEBINF_JAR_PATTERN
Constructor and Description |
---|
MavenWebInfConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
configure(WebAppContext context)
Configure WebApp.
|
void |
deconfigure(WebAppContext context)
DeConfigure WebApp.
|
protected List<Resource> |
findJars(WebAppContext context)
Get the jars to examine from the files from which we have
synthesized the classpath.
|
protected org.apache.maven.artifact.Artifact |
getArtifactForOverlay(OverlayConfig o,
List<org.apache.maven.artifact.Artifact> warArtifacts) |
protected boolean |
overlayMatchesArtifact(OverlayConfig o,
org.apache.maven.artifact.Artifact a) |
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, findWorkDirectory, getCanonicalNameForWebAppTmpDir, isTempWorkDirectory, makeTempDirectory, resolveTempDirectory
destroy
protected static int COUNTER
protected Resource _originalResourceBase
public void configure(WebAppContext context) throws Exception
Configuration
Typically this step applies the discovered configuration resources to
either the WebAppContext
or the associated MetaData
.
configure
in interface Configuration
configure
in class WebInfConfiguration
context
- The context to configureException
WebInfConfiguration.configure(org.eclipse.jetty.webapp.WebAppContext)
public void preConfigure(WebAppContext context) throws Exception
Configuration
Typically this step discovers configuration resources
preConfigure
in interface Configuration
preConfigure
in class WebInfConfiguration
context
- The context to configureException
WebInfConfiguration.preConfigure(org.eclipse.jetty.webapp.WebAppContext)
public void postConfigure(WebAppContext context) throws Exception
Configuration
postConfigure
in interface Configuration
postConfigure
in class AbstractConfiguration
context
- The context to configureException
AbstractConfiguration.postConfigure(org.eclipse.jetty.webapp.WebAppContext)
public void deconfigure(WebAppContext context) throws Exception
Configuration
deconfigure
in interface Configuration
deconfigure
in class WebInfConfiguration
context
- The context to configureException
WebInfConfiguration.deconfigure(org.eclipse.jetty.webapp.WebAppContext)
public void unpack(WebAppContext context) throws IOException
unpack
in class WebInfConfiguration
IOException
WebInfConfiguration.unpack(org.eclipse.jetty.webapp.WebAppContext)
protected List<Resource> findJars(WebAppContext context) throws Exception
findJars
in class WebInfConfiguration
context
- Exception
protected Resource unpackOverlay(WebAppContext context, Overlay overlay) throws IOException
IOException
protected org.apache.maven.artifact.Artifact getArtifactForOverlay(OverlayConfig o, List<org.apache.maven.artifact.Artifact> warArtifacts)
protected boolean overlayMatchesArtifact(OverlayConfig o, org.apache.maven.artifact.Artifact a)
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.