Class ConnectorArchivist
- java.lang.Object
-
- com.sun.enterprise.deployment.archivist.Archivist<ConnectorDescriptor>
-
- com.sun.enterprise.connectors.deployment.util.ConnectorArchivist
-
@Service @PerLookup public class ConnectorArchivist extends Archivist<ConnectorDescriptor>
This class is responsible for handling J2EE Connector archive files.- Version:
- Author:
- Sheetal Vartak
-
-
Field Summary
-
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 ConnectorArchivist()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getArchiveExtension()
List<ConfigurationDeploymentDescriptorFile>
getConfigurationDDFiles()
ConnectorDescriptor
getDefaultBundleDescriptor()
ArchiveType
getModuleType()
DeploymentDescriptorFile
getStandardDDFile()
protected boolean
postHandles(ReadableArchive abstractArchive)
Returns true if this archivist is capable of handling the archive type Here we check for the existence of the deployment descriptorsprotected void
postOpen(ConnectorDescriptor descriptor, ReadableArchive archive)
perform any post deployment descriptor reading actionvoid
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-
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, postStandardDDsRead, 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, writeContents, writeDeploymentDescriptors, writeExtensionDeploymentDescriptors, writeRuntimeDeploymentDescriptors, writeStandardDeploymentDescriptors
-
-
-
-
Method Detail
-
getModuleType
public ArchiveType getModuleType()
- Specified by:
getModuleType
in classArchivist<ConnectorDescriptor>
- Returns:
- the module type handled by this archivist as defined in the application DTD
-
getStandardDDFile
public DeploymentDescriptorFile getStandardDDFile()
- Specified by:
getStandardDDFile
in classArchivist<ConnectorDescriptor>
- Returns:
- the DeploymentDescriptorFile responsible for handling standard deployment descriptor
-
getConfigurationDDFiles
public List<ConfigurationDeploymentDescriptorFile> getConfigurationDDFiles()
- Specified by:
getConfigurationDDFiles
in classArchivist<ConnectorDescriptor>
- Returns:
- the list of the DeploymentDescriptorFile responsible for handling the configuration deployment descriptors
-
getDefaultBundleDescriptor
public ConnectorDescriptor getDefaultBundleDescriptor()
- Specified by:
getDefaultBundleDescriptor
in classArchivist<ConnectorDescriptor>
- Returns:
- a default BundleDescriptor for this archivist
-
postHandles
protected boolean postHandles(ReadableArchive abstractArchive) throws IOException
Description copied from class:Archivist
Returns true if this archivist is capable of handling the archive type Here we check for the existence of the deployment descriptors- Specified by:
postHandles
in classArchivist<ConnectorDescriptor>
- Returns:
- true if the archivist is handling the provided archive
- Throws:
IOException
-
getArchiveExtension
protected String getArchiveExtension()
- Specified by:
getArchiveExtension
in classArchivist<ConnectorDescriptor>
- Returns:
- The archive extension handled by a specific archivist
-
postOpen
protected void postOpen(ConnectorDescriptor descriptor, ReadableArchive archive) throws IOException
perform any post deployment descriptor reading action- Overrides:
postOpen
in classArchivist<ConnectorDescriptor>
- Parameters:
descriptor
- the deployment descriptor for the modulearchive
- the module archive- Throws:
IOException
-
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:
validate
in classArchivist<ConnectorDescriptor>
-
-