@Service @PerLookup public class AppClientArchivist extends Archivist<ApplicationClientDescriptor>
| Modifier and Type | Field and Description |
|---|---|
static Attributes.Name |
GLASSFISH_ANCHOR_DIR |
static Attributes.Name |
GLASSFISH_APPCLIENT |
static Attributes.Name |
GLASSFISH_CLIENT_PU_SCAN_TARGETS_NAME |
static Attributes.Name |
GLASSFISH_GROUP_FACADE |
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 and Description |
|---|
AppClientArchivist()
Creates new ApplicationClientArchvisit
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getArchiveExtension() |
List<ConfigurationDeploymentDescriptorFile> |
getConfigurationDDFiles() |
ApplicationClientDescriptor |
getDefaultBundleDescriptor() |
String |
getMainClassName(Manifest m) |
ArchiveType |
getModuleType() |
DeploymentDescriptorFile<ApplicationClientDescriptor> |
getStandardDDFile() |
ApplicationClientDescriptor |
open(ReadableArchive archive,
String mainClassNameToRun) |
protected boolean |
postHandles(ReadableArchive archive)
Returns true if this archivist is capable of handling the archive type
Here we check for the existence of the deployment descriptors
|
protected void |
postOpen(ApplicationClientDescriptor descriptor,
ReadableArchive archive)
perform any post deployment descriptor reading action
|
protected void |
postStandardDDsRead(ApplicationClientDescriptor descriptor,
ReadableArchive archive,
Map<ExtensionsArchivist,RootDeploymentDescriptor> extensions)
perform any action after all standard DDs is read
|
void |
setDescriptor(Application application) |
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
|
protected void |
writeContents(ReadableArchive in,
WritableArchive out,
Vector entriesToSkip)
writes the content of an archive to a JarFile
|
addFileToArchive, 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, 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 static final Attributes.Name GLASSFISH_APPCLIENT
public static final Attributes.Name GLASSFISH_CLIENT_PU_SCAN_TARGETS_NAME
public static final Attributes.Name GLASSFISH_GROUP_FACADE
public static final Attributes.Name GLASSFISH_ANCHOR_DIR
public AppClientArchivist()
public ArchiveType getModuleType()
getModuleType in class Archivist<ApplicationClientDescriptor>public ApplicationClientDescriptor open(ReadableArchive archive, String mainClassNameToRun) throws IOException, SAXParseException
IOExceptionSAXParseExceptionpublic void setDescriptor(Application application)
public DeploymentDescriptorFile<ApplicationClientDescriptor> getStandardDDFile()
getStandardDDFile in class Archivist<ApplicationClientDescriptor>public List<ConfigurationDeploymentDescriptorFile> getConfigurationDDFiles()
getConfigurationDDFiles in class Archivist<ApplicationClientDescriptor>public ApplicationClientDescriptor getDefaultBundleDescriptor()
getDefaultBundleDescriptor in class Archivist<ApplicationClientDescriptor>public void validate(ClassLoader aClassLoader)
validate in class Archivist<ApplicationClientDescriptor>protected void postStandardDDsRead(ApplicationClientDescriptor descriptor, ReadableArchive archive, Map<ExtensionsArchivist,RootDeploymentDescriptor> extensions) throws IOException
postStandardDDsRead in class Archivist<ApplicationClientDescriptor>descriptor - the deployment descriptor for the modulearchive - the module archiveextensions - map of extension archivistsIOExceptionprotected void postOpen(ApplicationClientDescriptor descriptor, ReadableArchive archive) throws IOException
postOpen in class Archivist<ApplicationClientDescriptor>descriptor - the deployment descriptor for the modulearchive - the module archiveIOExceptionprotected void writeContents(ReadableArchive in, WritableArchive out, Vector entriesToSkip) throws IOException
writeContents in class Archivist<ApplicationClientDescriptor>in - the input archiveout - the archive output stream to write toentriesToSkip - the files to not write from the original archiveIOExceptionpublic String getMainClassName(Manifest m)
protected boolean postHandles(ReadableArchive archive) throws IOException
ArchivistpostHandles in class Archivist<ApplicationClientDescriptor>IOExceptionprotected String getArchiveExtension()
getArchiveExtension in class Archivist<ApplicationClientDescriptor>Copyright © 2017. All rights reserved.