com.sun.enterprise.deployment.archivist
Class EjbArchivist

java.lang.Object
  extended by com.sun.enterprise.deployment.archivist.Archivist<EjbBundleDescriptor>
      extended by com.sun.enterprise.deployment.archivist.EjbArchivist

@Service
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
public class EjbArchivist
extends Archivist<EjbBundleDescriptor>

This class is responsible for handling J2EE EJB Bundlearchive files.

Version:
Author:
Jerome Dochez

Field Summary
 
Fields inherited from class com.sun.enterprise.deployment.archivist.Archivist
annotationProcessingRequested, APPCLIENT_EXTENSION, APPLICATION_EXTENSION, classLoader, CONNECTOR_EXTENSION, descriptor, EJB_EXTENSION, handleRuntimeInfo, logger, manifest, MANIFEST_VERSION_VALUE, path, UPLOAD_EXTENSION, WEB_EXTENSION, WEB_FRAGMENT_EXTENSION
 
Constructor Summary
EjbArchivist()
           
 
Method Summary
protected  java.lang.String getArchiveExtension()
           
 DeploymentDescriptorFile getConfigurationDDFile()
           
 EjbBundleDescriptor getDefaultBundleDescriptor()
           
 XModuleType getModuleType()
           
 DeploymentDescriptorFile getStandardDDFile()
           
 DeploymentDescriptorFile getSunConfigurationDDFile()
           
 java.lang.String getWebServicesDeploymentDescriptorPath()
           
protected  boolean postHandles(ReadableArchive abstractArchive)
           
protected  void postOpen(EjbBundleDescriptor descriptor, ReadableArchive archive)
          perform any post deployment descriptor reading action
 void setDescriptor(Application descriptor)
          Set the DOL descriptor for this Archivist, used by super classes
 void validate(java.lang.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, applyRuntimeInfo, containsRuntimeDeploymentDescriptors, copyAnEntry, copyExtraElements, copyInto, copyInto, copyInto, copyInto, copyInto, copyJarElements, copyStandardDeploymentDescriptors, createModuleDescriptor, extractEntry, getAnnotationErrorHandler, getClassLoader, getClassPath, getDeploymentDescriptorPath, getDescriptor, getLibraries, getListOfFilesToSkip, getManifest, getPath, getRuntimeDeploymentDescriptorPath, getRuntimeXMLValidation, getRuntimeXMLValidationLevel, getScanner, getTempFile, getTempFile, getUniqueEntryFilenameFor, getWebServicesDDFile, getWLConfigurationDDFile, getXMLValidation, getXMLValidationLevel, handles, hasRuntimeDeploymentDescriptor, hasStandardDeploymentDescriptor, initializeContext, isAnnotationProcessingRequested, isHandlingRuntimeInfo, isProcessAnnotation, open, open, open, open, open, open, openWith, performOptionalPkgDependenciesCheck, postAnnotationProcess, postRuntimeDDsRead, postStandardDDsRead, printDescriptor, processAnnotations, processAnnotations, readAnnotations, readAnnotations, readMetaInfo, readRuntimeDDFromDeploymentPlan, readRuntimeDDFromDeploymentPlan, readRuntimeDeploymentDescriptor, readRuntimeDeploymentDescriptor, readStandardDeploymentDescriptor, renameTmp, saveRuntimeInfo, setAnnotationErrorHandler, setAnnotationProcessingRequested, setArchiveUri, setClassLoader, setClassPath, setDescriptor, setHandleRuntimeInfo, setManifest, setModuleDescriptor, setRuntimeXMLValidation, setRuntimeXMLValidationLevel, setXMLValidation, setXMLValidationLevel, supportsModuleType, write, write, write, write, writeContents, writeContents, writeContents, writeDeploymentDescriptors, writeExtraDeploymentDescriptors, writeRuntimeDeploymentDescriptors, writeRuntimeDeploymentDescriptors, writeStandardDeploymentDescriptors, writeStandardDeploymentDescriptors, writeWebServicesDescriptors, writeWLRuntimeDeploymentDescriptors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EjbArchivist

public EjbArchivist()
Method Detail

getModuleType

public XModuleType getModuleType()
Specified by:
getModuleType in class Archivist<EjbBundleDescriptor>
Returns:
the module type handled by this archivist as defined in the application DTD

setDescriptor

public void setDescriptor(Application descriptor)
Set the DOL descriptor for this Archivist, used by super classes


getStandardDDFile

public DeploymentDescriptorFile getStandardDDFile()
Specified by:
getStandardDDFile in class Archivist<EjbBundleDescriptor>
Returns:
the DeploymentDescriptorFile responsible for handling standard deployment descriptor

getConfigurationDDFile

public DeploymentDescriptorFile getConfigurationDDFile()
Specified by:
getConfigurationDDFile in class Archivist<EjbBundleDescriptor>
Returns:
if exists the DeploymentDescriptorFile responsible for handling the configuration deployment descriptors

getSunConfigurationDDFile

public DeploymentDescriptorFile getSunConfigurationDDFile()
Overrides:
getSunConfigurationDDFile in class Archivist<EjbBundleDescriptor>
Returns:
if exists the DeploymentDescriptorFile responsible for handling the Sun configuration deployment descriptors

getWebServicesDeploymentDescriptorPath

public java.lang.String getWebServicesDeploymentDescriptorPath()
Overrides:
getWebServicesDeploymentDescriptorPath in class Archivist<EjbBundleDescriptor>
Returns:
the location of the web services related deployment descriptor file inside this archive or null if this archive does not support webservices implementation.

getDefaultBundleDescriptor

public EjbBundleDescriptor getDefaultBundleDescriptor()
Specified by:
getDefaultBundleDescriptor in class Archivist<EjbBundleDescriptor>
Returns:
a default BundleDescriptor for this archivist

postOpen

protected void postOpen(EjbBundleDescriptor descriptor,
                        ReadableArchive archive)
                 throws java.io.IOException
perform any post deployment descriptor reading action

Overrides:
postOpen in class Archivist<EjbBundleDescriptor>
Parameters:
descriptor - deployment descriptor for the module
archive - the module archive
Throws:
java.io.IOException

validate

public void validate(java.lang.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 Archivist<EjbBundleDescriptor>

getArchiveExtension

protected java.lang.String getArchiveExtension()
Specified by:
getArchiveExtension in class Archivist<EjbBundleDescriptor>
Returns:
The archive extension handled by a specific archivist

postHandles

protected boolean postHandles(ReadableArchive abstractArchive)
                       throws java.io.IOException
Specified by:
postHandles in class Archivist<EjbBundleDescriptor>
Returns:
true if the archivist is handling the provided archive
Throws:
java.io.IOException


Copyright © 2012 GlassFish Community. All Rights Reserved.