@Service @PerLookup public class ACCAppClientArchivist extends AppClientArchivist implements org.glassfish.hk2.api.PostConstruct
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.
GLASSFISH_ANCHOR_DIR, GLASSFISH_APPCLIENT, GLASSFISH_CLIENT_PU_SCAN_TARGETS_NAME, GLASSFISH_GROUP_FACADEannotationProcessingRequested, 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 and Description |
|---|
ACCAppClientArchivist() |
| Modifier and Type | Method and 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.
|
getArchiveExtension, getConfigurationDDFiles, getDefaultBundleDescriptor, getMainClassName, getModuleType, getStandardDDFile, open, postHandles, postOpen, postStandardDDsRead, setDescriptor, validate, writeContentsaddFileToArchive, copyAnEntry, copyExtraElements, copyInto, copyInto, copyInto, copyInto, copyInto, copyJarElements, copyStandardDeploymentDescriptors, createModuleDescriptor, extractEntry, 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, writeStandardDeploymentDescriptorspublic void readRuntimeDeploymentDescriptor(ReadableArchive archive, ApplicationClientDescriptor descriptor) throws IOException, SAXParseException
ArchivistreadRuntimeDeploymentDescriptor in class Archivist<ApplicationClientDescriptor>archive - the archivedescriptor - the initialized deployment descriptorIOExceptionSAXParseExceptionpublic void postConstruct()
postConstruct in interface org.glassfish.hk2.api.PostConstructCopyright © 2017. All rights reserved.