@Service(name="ear") public class EarHandler extends AbstractArchiveHandler implements CompositeHandler
| Modifier and Type | Field and Description |
|---|---|
protected PermissionCollection |
earDeclaredPC |
deplLoggerhabitat| Constructor and Description |
|---|
EarHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(ReadableArchive source,
String entryName) |
void |
expand(ReadableArchive source,
WritableArchive target,
DeploymentContext context)
Prepares the jar file to a format the ApplicationContainer is
expecting.
|
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.
|
void |
initCompositeMetaData(DeploymentContext context) |
protected void |
processEEPermissions(DeploymentContext dc) |
getManifestLibraries, getXMLInputFactorygetClassPathURIs, getDefaultApplicationName, getDefaultApplicationName, getDefaultApplicationNameFromArchiveName, getManifest, requiresAnnotationScanningclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClassPathURIs, getDefaultApplicationName, getDefaultApplicationName, getManifest, requiresAnnotationScanningprotected PermissionCollection earDeclaredPC
public String getArchiveType()
ArchiveHandlerArchiveDetector.getArchiveType() except that
this method returns string equivalent of ArchiveType because of backward compatibility reasons.getArchiveType in interface ArchiveHandlerArchiveDetector.getArchiveType()public String getVersionIdentifier(ReadableArchive archive)
GenericHandlergetVersionIdentifier in interface ArchiveHandlergetVersionIdentifier in class GenericHandlerarchive - the archive for which to provide the version identifierpublic boolean handles(ReadableArchive archive) throws IOException
ArchiveHandlerhandles in interface ArchiveHandlerIOException - 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 void expand(ReadableArchive source, WritableArchive target, DeploymentContext context) throws IOException
GenericHandlerexpand in interface ArchiveHandlerexpand in class GenericHandlersource - of the expandingtarget - of the expandingcontext - deployment contextIOException - when the archive is corruptedpublic ClassLoader getClassLoader(ClassLoader parent, DeploymentContext context)
ArchiveHandlergetClassLoader in interface ArchiveHandlerparent - 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 void processEEPermissions(DeploymentContext dc)
public boolean accept(ReadableArchive source, String entryName)
accept in interface CompositeHandlerpublic void initCompositeMetaData(DeploymentContext context)
initCompositeMetaData in interface CompositeHandlerCopyright © 2019. All rights reserved.