Class RarHandler
- java.lang.Object
-
- org.glassfish.internal.deployment.GenericHandler
-
- com.sun.enterprise.deploy.shared.AbstractArchiveHandler
-
- com.sun.enterprise.connectors.module.RarHandler
-
- All Implemented Interfaces:
ArchiveHandler
@Service(name="rar") public class RarHandler extends AbstractArchiveHandler
Archive handler for resource-adapters- Author:
- Jagadish Ramu
-
-
Field Summary
-
Fields inherited from class com.sun.enterprise.deploy.shared.AbstractArchiveHandler
deplLogger
-
Fields inherited from class org.glassfish.internal.deployment.GenericHandler
habitat
-
-
Constructor Summary
Constructors Constructor Description RarHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getArchiveType()
This method is semantically equivalent toArchiveDetector.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.-
Methods inherited from class com.sun.enterprise.deploy.shared.AbstractArchiveHandler
getManifestLibraries, getXMLInputFactory
-
Methods inherited from class org.glassfish.internal.deployment.GenericHandler
expand, getDefaultApplicationName, getDefaultApplicationName, getDefaultApplicationName, getDefaultApplicationNameFromArchiveName, getManifest, getVersionIdentifier, requiresAnnotationScanning
-
-
-
-
Method Detail
-
getArchiveType
public String getArchiveType()
This method is semantically equivalent toArchiveDetector.getArchiveType()
except that this method returns string equivalent of ArchiveType because of backward compatibility reasons.- Returns:
- the type of the archive or deployment unit handled by this handler
- See Also:
ArchiveDetector.getArchiveType()
-
handles
public boolean handles(ReadableArchive archive) throws IOException
Returns true if this handler understands the specified archive and can process it.- Throws:
IOException
- The implementation of this method is expected to interact with the given archive, and if methods onReadableArchive
throws anIOException
, it can be simply tunneled to the caller.
-
getClassLoader
public ClassLoader getClassLoader(ClassLoader parent, DeploymentContext context)
Creates a classloader that can load code from inside the archive.- Parameters:
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 container
-
getClassPathURIs
public List<URI> getClassPathURIs(ReadableArchive archive)
Returns the classpath URIs for this archive.- Specified by:
getClassPathURIs
in interfaceArchiveHandler
- Overrides:
getClassPathURIs
in classGenericHandler
- Parameters:
archive
- file- Returns:
- classpath URIs for this archive
-
-