@Service(name="rar") public class RarHandler extends AbstractArchiveHandler
deplLoggerhabitat| Constructor and Description |
|---|
RarHandler() |
| 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.
|
List<URI> |
getClassPathURIs(ReadableArchive archive)
Returns the classpath URIs for this archive.
|
boolean |
handles(ReadableArchive archive)
Returns true if this handler understands the specified archive and
can process it.
|
getManifestLibraries, getXMLInputFactoryexpand, getDefaultApplicationName, getDefaultApplicationName, getDefaultApplicationNameFromArchiveName, getManifest, getVersionIdentifier, requiresAnnotationScanningpublic String getArchiveType()
ArchiveDetector.getArchiveType() except that
this method returns string equivalent of ArchiveType because of backward compatibility reasons.ArchiveDetector.getArchiveType()public boolean handles(ReadableArchive archive) throws IOException
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)
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 containerpublic List<URI> getClassPathURIs(ReadableArchive archive)
getClassPathURIs in interface ArchiveHandlergetClassPathURIs in class GenericHandlerarchive - fileCopyright © 2019. All rights reserved.