@Service(name="war") public class WarHandler extends AbstractArchiveHandler
Modifier and Type | Class and Description |
---|---|
protected class |
WarHandler.BaseXmlParser |
protected class |
WarHandler.ContextXmlParser |
protected class |
WarHandler.GlassFishWebXmlParser |
protected class |
WarHandler.SunWebXmlParser |
protected class |
WarHandler.WeblogicXmlParser |
protected class |
WarHandler.WebXmlParser |
deplLogger
habitat
Constructor and Description |
---|
WarHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
configureContextXmlAttribute(WebappClassLoader cloader,
File base,
DeploymentContext dc) |
protected void |
configureLoaderAttributes(WebappClassLoader cloader,
WarHandler.WebXmlParser webXmlParser,
File base) |
protected void |
configureLoaderProperties(WebappClassLoader cloader,
WarHandler.WebXmlParser webXmlParser,
File base) |
String |
getArchiveType()
This method is semantically equivalent to
ArchiveDetector.getArchiveType() except that
this method returns string equivalent of ArchiveType because of backward compatibility reasons. |
ClassLoader |
getClassLoader(ClassLoader parent,
DeploymentContext context)
Creates a classloader that can load code from inside the archive.
|
List<URI> |
getClassPathURIs(ReadableArchive archive)
Returns the classpath URIs for this archive.
|
String |
getVersionIdentifier(ReadableArchive archive)
Returns the default value for versionIdentifier.
|
protected WarHandler.WebXmlParser |
getWebXmlParser(ReadableArchive archive,
Application application) |
boolean |
handles(ReadableArchive archive)
Returns true if this handler understands the specified archive and
can process it.
|
getManifestLibraries, getXMLInputFactory
expand, getDefaultApplicationName, getDefaultApplicationName, getDefaultApplicationNameFromArchiveName, getManifest, requiresAnnotationScanning
public String getArchiveType()
ArchiveHandler
ArchiveDetector.getArchiveType()
except that
this method returns string equivalent of ArchiveType because of backward compatibility reasons.ArchiveDetector.getArchiveType()
public String getVersionIdentifier(ReadableArchive archive)
GenericHandler
getVersionIdentifier
in interface ArchiveHandler
getVersionIdentifier
in class GenericHandler
archive
- the archive for which to provide the version identifierpublic boolean handles(ReadableArchive archive) throws IOException
ArchiveHandler
IOException
- The implementation of this method is expected to interact with
the given archive, and if methods on ReadableArchive
throws an IOException
, it can be simply tunneled to the caller.public ClassLoader getClassLoader(ClassLoader parent, DeploymentContext context)
ArchiveHandler
parent
- The newly created classloader to be returned must eventually delegate to this classloader.
(This classloader is capable of resolving APIs and other things that the containerprotected WarHandler.WebXmlParser getWebXmlParser(ReadableArchive archive, Application application) throws XMLStreamException, IOException
XMLStreamException
IOException
protected void configureLoaderAttributes(WebappClassLoader cloader, WarHandler.WebXmlParser webXmlParser, File base)
protected void configureLoaderProperties(WebappClassLoader cloader, WarHandler.WebXmlParser webXmlParser, File base)
protected void configureContextXmlAttribute(WebappClassLoader cloader, File base, DeploymentContext dc) throws XMLStreamException, IOException
XMLStreamException
IOException
public List<URI> getClassPathURIs(ReadableArchive archive)
getClassPathURIs
in interface ArchiveHandler
getClassPathURIs
in class GenericHandler
archive
- fileCopyright © 2018. All rights reserved.