public class MavenWebInfConfiguration extends WebInfConfiguration
Configuration.ClassList
Modifier and Type | Field and Description |
---|---|
protected Resource |
_originalResourceBase |
protected List<Resource> |
_unpackedOverlayResources |
protected static int |
COUNTER |
_preUnpackBaseResource, CONTAINER_JAR_PATTERN, RESOURCE_DIRS, TEMPDIR_CONFIGURED, WEBINF_JAR_PATTERN
ATTR
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> |
findClassDirs(WebAppContext context)
Add in the classes dirs from test/classes and target/classes
|
protected 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, findExtraClasspathDirs, findExtraClasspathJars, findWebInfClassesDir, findWebInfLibJars, getCanonicalNameForWebAppTmpDir, 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 List<Resource> findClassDirs(WebAppContext context) throws Exception
findClassDirs
in class WebInfConfiguration
Exception
WebInfConfiguration.findClassDirs(org.eclipse.jetty.webapp.WebAppContext)
protected Resource unpackOverlay(WebAppContext context, Overlay overlay) throws IOException
IOException
Copyright © 1995-2014 Mort Bay Consulting. All Rights Reserved.