Class AppClientArchivist
- java.lang.Object
-
- com.sun.enterprise.deployment.archivist.Archivist<ApplicationClientDescriptor>
-
- com.sun.enterprise.deployment.archivist.AppClientArchivist
-
- Direct Known Subclasses:
ACCAppClientArchivist
@Service @PerLookup public class AppClientArchivist extends Archivist<ApplicationClientDescriptor>
This class is responsible for handling J2EE app client files.- Author:
- Sheetal Vartak
-
-
Field Summary
Fields Modifier and Type Field Description static Attributes.NameGLASSFISH_ANCHOR_DIRstatic Attributes.NameGLASSFISH_APPCLIENTstatic Attributes.NameGLASSFISH_CLIENT_PU_SCAN_TARGETS_NAMEstatic Attributes.NameGLASSFISH_GROUP_FACADE-
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 AppClientArchivist()Creates new ApplicationClientArchvisit
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetArchiveExtension()List<ConfigurationDeploymentDescriptorFile>getConfigurationDDFiles()ApplicationClientDescriptorgetDefaultBundleDescriptor()StringgetMainClassName(Manifest m)ArchiveTypegetModuleType()DeploymentDescriptorFile<ApplicationClientDescriptor>getStandardDDFile()ApplicationClientDescriptoropen(ReadableArchive archive, String mainClassNameToRun)protected booleanpostHandles(ReadableArchive archive)Returns true if this archivist is capable of handling the archive type Here we check for the existence of the deployment descriptorsprotected voidpostOpen(ApplicationClientDescriptor descriptor, ReadableArchive archive)perform any post deployment descriptor reading actionprotected voidpostStandardDDsRead(ApplicationClientDescriptor descriptor, ReadableArchive archive, Map<ExtensionsArchivist,RootDeploymentDescriptor> extensions)perform any action after all standard DDs is readvoidsetDescriptor(Application application)voidvalidate(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 parameterprotected voidwriteContents(ReadableArchive in, WritableArchive out, Vector entriesToSkip)writes the content of an archive to a JarFile-
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, 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, writeDeploymentDescriptors, writeExtensionDeploymentDescriptors, writeRuntimeDeploymentDescriptors, writeStandardDeploymentDescriptors
-
-
-
-
Field Detail
-
GLASSFISH_APPCLIENT
public static final Attributes.Name GLASSFISH_APPCLIENT
-
GLASSFISH_CLIENT_PU_SCAN_TARGETS_NAME
public static final Attributes.Name GLASSFISH_CLIENT_PU_SCAN_TARGETS_NAME
-
GLASSFISH_GROUP_FACADE
public static final Attributes.Name GLASSFISH_GROUP_FACADE
-
GLASSFISH_ANCHOR_DIR
public static final Attributes.Name GLASSFISH_ANCHOR_DIR
-
-
Method Detail
-
getModuleType
public ArchiveType getModuleType()
- Specified by:
getModuleTypein classArchivist<ApplicationClientDescriptor>- Returns:
- the module type handled by this archivist as defined in the application DTD
-
open
public ApplicationClientDescriptor open(ReadableArchive archive, String mainClassNameToRun) throws IOException, SAXParseException
- Throws:
IOExceptionSAXParseException
-
setDescriptor
public void setDescriptor(Application application)
-
getStandardDDFile
public DeploymentDescriptorFile<ApplicationClientDescriptor> getStandardDDFile()
- Specified by:
getStandardDDFilein classArchivist<ApplicationClientDescriptor>- Returns:
- the DeploymentDescriptorFile responsible for handling standard deployment descriptor
-
getConfigurationDDFiles
public List<ConfigurationDeploymentDescriptorFile> getConfigurationDDFiles()
- Specified by:
getConfigurationDDFilesin classArchivist<ApplicationClientDescriptor>- Returns:
- the list of the DeploymentDescriptorFile responsible for handling the configuration deployment descriptors
-
getDefaultBundleDescriptor
public ApplicationClientDescriptor getDefaultBundleDescriptor()
- Specified by:
getDefaultBundleDescriptorin classArchivist<ApplicationClientDescriptor>- Returns:
- a default BundleDescriptor for this archivist
-
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:
validatein classArchivist<ApplicationClientDescriptor>
-
postStandardDDsRead
protected void postStandardDDsRead(ApplicationClientDescriptor descriptor, ReadableArchive archive, Map<ExtensionsArchivist,RootDeploymentDescriptor> extensions) throws IOException
perform any action after all standard DDs is read- Overrides:
postStandardDDsReadin classArchivist<ApplicationClientDescriptor>- Parameters:
descriptor- the deployment descriptor for the modulearchive- the module archiveextensions- map of extension archivists- Throws:
IOException
-
postOpen
protected void postOpen(ApplicationClientDescriptor descriptor, ReadableArchive archive) throws IOException
perform any post deployment descriptor reading action- Overrides:
postOpenin classArchivist<ApplicationClientDescriptor>- Parameters:
descriptor- the deployment descriptor for the modulearchive- the module archive- Throws:
IOException
-
writeContents
protected void writeContents(ReadableArchive in, WritableArchive out, Vector entriesToSkip) throws IOException
writes the content of an archive to a JarFile- Overrides:
writeContentsin classArchivist<ApplicationClientDescriptor>- Parameters:
in- the input archiveout- the archive output stream to write toentriesToSkip- the files to not write from the original archive- Throws:
IOException
-
getMainClassName
public String getMainClassName(Manifest m)
- Returns:
- the manifest attribute Main-class
-
postHandles
protected boolean postHandles(ReadableArchive archive) throws IOException
Description copied from class:ArchivistReturns true if this archivist is capable of handling the archive type Here we check for the existence of the deployment descriptors- Specified by:
postHandlesin classArchivist<ApplicationClientDescriptor>- Returns:
- true if the archivist is handling the provided archive
- Throws:
IOException
-
getArchiveExtension
protected String getArchiveExtension()
- Specified by:
getArchiveExtensionin classArchivist<ApplicationClientDescriptor>- Returns:
- The archive extension handled by a specific archivist
-
-