com.sun.enterprise.deployment.archivist
Class ACCAppClientArchivist

java.lang.Object
  extended by com.sun.enterprise.deployment.archivist.Archivist<ApplicationClientDescriptor>
      extended by com.sun.enterprise.deployment.archivist.AppClientArchivist
          extended by com.sun.enterprise.deployment.archivist.ACCAppClientArchivist

@Service
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
public class ACCAppClientArchivist
extends AppClientArchivist

AppClientArchivist that does not warn if both the GlassFish and the legacy Sun runtime descriptors are present.

The ACC uses a MultiReadableArchive to essentially merge the contents of the generated app client JAR with the developer's original app client JAR. The generated file contains a generated GlassFish runtime descriptor. If the developer's app client contains a legacy sun-application-client.xml descriptor, then the normal archivist logic would detect that both the GlassFish DD and the developer's legacy sun-application-client.xml were present in the merged contents and it would log a warning.

We prevent such warnings by overriding the method which reads the runtime deployment descriptor.

Author:
Tim Quinn

Field Summary
 
Fields inherited from class com.sun.enterprise.deployment.archivist.AppClientArchivist
GLASSFISH_ANCHOR_DIR, GLASSFISH_APPCLIENT, GLASSFISH_CLIENT_PU_SCAN_TARGETS_NAME, GLASSFISH_GROUP_FACADE
 
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
ACCAppClientArchivist()
           
 
Method Summary
 void readRuntimeDeploymentDescriptor(ReadableArchive archive, ApplicationClientDescriptor descriptor)
          Read the runtime deployment descriptors (can contained in one or many file) set the corresponding information in the passed descriptor.
 
Methods inherited from class com.sun.enterprise.deployment.archivist.AppClientArchivist
getArchiveExtension, getConfigurationDDFile, getDefaultBundleDescriptor, getMainClassName, getModuleType, getStandardDDFile, getSunConfigurationDDFile, open, postHandles, postOpen, postStandardDDsRead, runValidations, setDescriptor, validate, writeContents
 
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, getWebServicesDeploymentDescriptorPath, getWLConfigurationDDFile, getXMLValidation, getXMLValidationLevel, handles, hasRuntimeDeploymentDescriptor, hasStandardDeploymentDescriptor, initializeContext, isAnnotationProcessingRequested, isHandlingRuntimeInfo, isProcessAnnotation, open, open, open, open, open, open, openWith, performOptionalPkgDependenciesCheck, postAnnotationProcess, postRuntimeDDsRead, printDescriptor, processAnnotations, processAnnotations, readAnnotations, readAnnotations, readMetaInfo, readRuntimeDDFromDeploymentPlan, readRuntimeDDFromDeploymentPlan, readRuntimeDeploymentDescriptor, readStandardDeploymentDescriptor, renameTmp, saveRuntimeInfo, setAnnotationErrorHandler, setAnnotationProcessingRequested, setArchiveUri, setClassLoader, setClassPath, setDescriptor, setHandleRuntimeInfo, setManifest, setModuleDescriptor, setRuntimeXMLValidation, setRuntimeXMLValidationLevel, setXMLValidation, setXMLValidationLevel, supportsModuleType, write, write, write, write, 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

ACCAppClientArchivist

public ACCAppClientArchivist()
Method Detail

readRuntimeDeploymentDescriptor

public void readRuntimeDeploymentDescriptor(ReadableArchive archive,
                                            ApplicationClientDescriptor descriptor)
                                     throws java.io.IOException,
                                            org.xml.sax.SAXParseException
Description copied from class: Archivist
Read the runtime deployment descriptors (can contained in one or many file) set the corresponding information in the passed descriptor. By default, the runtime deployment descriptors are all contained in the xml file characterized with the path returned by

Overrides:
readRuntimeDeploymentDescriptor in class Archivist<ApplicationClientDescriptor>
Parameters:
archive - the archive
descriptor - the initialized deployment descriptor
Throws:
java.io.IOException
org.xml.sax.SAXParseException


Copyright © 2012 GlassFish Community. All Rights Reserved.