Package org.glassfish.ejb.deployment
Class EjbJarHandler
- java.lang.Object
-
- org.glassfish.internal.deployment.GenericHandler
-
- com.sun.enterprise.deploy.shared.AbstractArchiveHandler
-
- org.glassfish.ejb.deployment.EjbJarHandler
-
- All Implemented Interfaces:
ArchiveHandler
@Service(name="ejb") public class EjbJarHandler extends AbstractArchiveHandler
- Author:
- [email protected]
-
-
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 EjbJarHandler()
-
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.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.-
Methods inherited from class com.sun.enterprise.deploy.shared.AbstractArchiveHandler
getManifestLibraries, getXMLInputFactory
-
Methods inherited from class org.glassfish.internal.deployment.GenericHandler
expand, getClassPathURIs, getDefaultApplicationName, getDefaultApplicationName, getDefaultApplicationName, getDefaultApplicationNameFromArchiveName, getManifest, requiresAnnotationScanning
-
-
-
-
Method Detail
-
getArchiveType
public String getArchiveType()
Description copied from interface:ArchiveHandler
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
Description copied from interface:ArchiveHandler
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.
-
getVersionIdentifier
public String getVersionIdentifier(ReadableArchive archive)
Description copied from class:GenericHandler
Returns the default value for versionIdentifier. This allows us to override the method only where thhe version-identifier element is supported.- Specified by:
getVersionIdentifier
in interfaceArchiveHandler
- Overrides:
getVersionIdentifier
in classGenericHandler
- Parameters:
archive
- the archive for which to provide the version identifier- Returns:
- null
-
getClassLoader
public ClassLoader getClassLoader(ClassLoader parent, DeploymentContext context)
Description copied from interface:ArchiveHandler
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
-
-