Class EjbArchivist


  • @Service
    @PerLookup
    public class EjbArchivist
    extends com.sun.enterprise.deployment.archivist.Archivist<EjbBundleDescriptorImpl>
    This class is responsible for handling J2EE EJB Bundlearchive files.
    Author:
    Jerome Dochez
    • Field Summary

      • Fields inherited from class com.sun.enterprise.deployment.archivist.Archivist

        annotationProcessingRequested, APPCLIENT_EXTENSION, APPLICATION_EXTENSION, classLoader, confDDFiles, CONNECTOR_EXTENSION, descriptor, EJB_EXTENSION, extensionsArchivists, habitat, handleRuntimeInfo, locator, logger, manifest, MANIFEST_VERSION_VALUE, path, standardDD, UPLOAD_EXTENSION, WEB_EXTENSION, WEB_FRAGMENT_EXTENSION
    • Constructor Summary

      Constructors 
      Constructor Description
      EjbArchivist()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected String getArchiveExtension()  
      List<com.sun.enterprise.deployment.io.ConfigurationDeploymentDescriptorFile> getConfigurationDDFiles()  
      EjbBundleDescriptorImpl getDefaultBundleDescriptor()  
      org.glassfish.api.deployment.archive.ArchiveType getModuleType()  
      com.sun.enterprise.deployment.io.DeploymentDescriptorFile getStandardDDFile()  
      protected boolean postHandles​(org.glassfish.api.deployment.archive.ReadableArchive abstractArchive)  
      protected void postOpen​(EjbBundleDescriptorImpl descriptor, org.glassfish.api.deployment.archive.ReadableArchive archive)
      perform any post deployment descriptor reading action
      void setDescriptor​(com.sun.enterprise.deployment.Application descriptor)
      Set the DOL descriptor for this Archivist, used by super classes
      void validate​(ClassLoader aClassLoader)
      validates the DOL Objects associated with this archivist, usually it requires that a class loader being set on this archivist or passed as a parameter
      • Methods inherited from class com.sun.enterprise.deployment.archivist.Archivist

        addFileToArchive, copyAnEntry, copyExtraElements, copyInto, copyInto, copyInto, copyInto, copyInto, copyJarElements, copyStandardDeploymentDescriptors, createModuleDescriptor, getAllWebservicesDeploymentDescriptorPaths, getAnnotationErrorHandler, getClassLoader, getClassPath, getDeploymentDescriptorPath, getDescriptor, getExtensionArchivists, getLibraries, getListOfFilesToSkip, getManifest, getPath, getRuntimeDeploymentDescriptorPath, getRuntimeXMLValidation, getRuntimeXMLValidationLevel, getScanner, getTempFile, getTempFile, getUniqueEntryFilenameFor, getXMLValidation, getXMLValidationLevel, handles, hasRuntimeDeploymentDescriptor, hasStandardDeploymentDescriptor, initializeContext, isAnnotationProcessingRequested, isHandlingRuntimeInfo, isProcessAnnotation, open, open, open, open, open, open, openWith, performOptionalPkgDependenciesCheck, postAnnotationProcess, postRuntimeDDsRead, postStandardDDsRead, postValidate, printDescriptor, processAnnotations, processAnnotations, readAnnotations, readAnnotations, readMetaInfo, readRuntimeDeploymentDescriptor, readRuntimeDeploymentDescriptor, readStandardDeploymentDescriptor, renameTmp, setAnnotationErrorHandler, setAnnotationProcessingRequested, setArchiveUri, setClassLoader, setClassPath, setDescriptor, setExtensionArchivists, setHandleRuntimeInfo, setManifest, setModuleDescriptor, setRuntimeXMLValidation, setRuntimeXMLValidationLevel, setXMLValidation, setXMLValidationLevel, write, write, write, write, writeContents, writeContents, writeContents, writeDeploymentDescriptors, writeExtensionDeploymentDescriptors, writeRuntimeDeploymentDescriptors, writeStandardDeploymentDescriptors
    • Constructor Detail

      • EjbArchivist

        public EjbArchivist()
    • Method Detail

      • getModuleType

        public org.glassfish.api.deployment.archive.ArchiveType getModuleType()
        Specified by:
        getModuleType in class com.sun.enterprise.deployment.archivist.Archivist<EjbBundleDescriptorImpl>
        Returns:
        the module type handled by this archivist as defined in the application DTD
      • setDescriptor

        public void setDescriptor​(com.sun.enterprise.deployment.Application descriptor)
        Set the DOL descriptor for this Archivist, used by super classes
      • getStandardDDFile

        public com.sun.enterprise.deployment.io.DeploymentDescriptorFile getStandardDDFile()
        Specified by:
        getStandardDDFile in class com.sun.enterprise.deployment.archivist.Archivist<EjbBundleDescriptorImpl>
        Returns:
        the DeploymentDescriptorFile responsible for handling standard deployment descriptor
      • getConfigurationDDFiles

        public List<com.sun.enterprise.deployment.io.ConfigurationDeploymentDescriptorFile> getConfigurationDDFiles()
        Specified by:
        getConfigurationDDFiles in class com.sun.enterprise.deployment.archivist.Archivist<EjbBundleDescriptorImpl>
        Returns:
        the list of the DeploymentDescriptorFile responsible for handling the configuration deployment descriptors
      • getDefaultBundleDescriptor

        public EjbBundleDescriptorImpl getDefaultBundleDescriptor()
        Specified by:
        getDefaultBundleDescriptor in class com.sun.enterprise.deployment.archivist.Archivist<EjbBundleDescriptorImpl>
        Returns:
        a default BundleDescriptor for this archivist
      • postOpen

        protected void postOpen​(EjbBundleDescriptorImpl descriptor,
                                org.glassfish.api.deployment.archive.ReadableArchive archive)
                         throws IOException
        perform any post deployment descriptor reading action
        Overrides:
        postOpen in class com.sun.enterprise.deployment.archivist.Archivist<EjbBundleDescriptorImpl>
        Parameters:
        descriptor - deployment descriptor for the module
        archive - the module archive
        Throws:
        IOException
      • validate

        public void validate​(ClassLoader aClassLoader)
        validates the DOL Objects associated with this archivist, usually it requires that a class loader being set on this archivist or passed as a parameter
        Overrides:
        validate in class com.sun.enterprise.deployment.archivist.Archivist<EjbBundleDescriptorImpl>
      • getArchiveExtension

        protected String getArchiveExtension()
        Specified by:
        getArchiveExtension in class com.sun.enterprise.deployment.archivist.Archivist<EjbBundleDescriptorImpl>
      • postHandles

        protected boolean postHandles​(org.glassfish.api.deployment.archive.ReadableArchive abstractArchive)
                               throws IOException
        Specified by:
        postHandles in class com.sun.enterprise.deployment.archivist.Archivist<EjbBundleDescriptorImpl>
        Throws:
        IOException