@Service(name="car") public class CarHandler extends AbstractArchiveHandler
deplLogger
habitat
Constructor and Description |
---|
CarHandler() |
Modifier and Type | Method and Description |
---|---|
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.
|
String |
getVersionIdentifier(ReadableArchive archive)
Returns the default value for versionIdentifier.
|
boolean |
handles(ReadableArchive archive)
Returns true if this handler understands the specified archive and
can process it.
|
getManifestLibraries, getXMLInputFactory
expand, getClassPathURIs, 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 containerCopyright © 2019. All rights reserved.