Package org.glassfish.appclient.common
Class ACCAppClientArchivist
- java.lang.Object
-
- com.sun.enterprise.deployment.archivist.Archivist<ApplicationClientDescriptor>
-
- com.sun.enterprise.deployment.archivist.AppClientArchivist
-
- org.glassfish.appclient.common.ACCAppClientArchivist
-
- All Implemented Interfaces:
org.glassfish.hk2.api.PostConstruct
@Service @PerLookup public class ACCAppClientArchivist extends AppClientArchivist implements org.glassfish.hk2.api.PostConstruct
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, 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 ACCAppClientArchivist()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
postConstruct()
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, getConfigurationDDFiles, getDefaultBundleDescriptor, getMainClassName, getModuleType, getStandardDDFile, open, postHandles, postOpen, postStandardDDsRead, setDescriptor, validate, writeContents
-
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, 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
-
-
-
-
Method Detail
-
readRuntimeDeploymentDescriptor
public void readRuntimeDeploymentDescriptor(ReadableArchive archive, ApplicationClientDescriptor descriptor) throws IOException, 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 classArchivist<ApplicationClientDescriptor>
- Parameters:
archive
- the archivedescriptor
- the initialized deployment descriptor- Throws:
IOException
SAXParseException
-
postConstruct
public void postConstruct()
- Specified by:
postConstruct
in interfaceorg.glassfish.hk2.api.PostConstruct
-
-