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 StringgetArchiveExtension()List<ConfigurationDeploymentDescriptorFile>getConfigurationDDFiles()ConnectorDescriptorgetDefaultBundleDescriptor()ArchiveTypegetModuleType()DeploymentDescriptorFilegetStandardDDFile()protected booleanpostHandles(ReadableArchive abstractArchive)Returns true if this archivist is capable of handling the archive type Here we check for the existence of the deployment descriptorsprotected voidpostOpen(ConnectorDescriptor descriptor, ReadableArchive archive)perform any post deployment descriptor reading actionvoidvalidate(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:
getModuleTypein classArchivist<ConnectorDescriptor>- Returns:
- the module type handled by this archivist as defined in the application DTD
-
getStandardDDFile
public DeploymentDescriptorFile getStandardDDFile()
- Specified by:
getStandardDDFilein classArchivist<ConnectorDescriptor>- Returns:
- the DeploymentDescriptorFile responsible for handling standard deployment descriptor
-
getConfigurationDDFiles
public List<ConfigurationDeploymentDescriptorFile> getConfigurationDDFiles()
- Specified by:
getConfigurationDDFilesin classArchivist<ConnectorDescriptor>- Returns:
- the list of the DeploymentDescriptorFile responsible for handling the configuration deployment descriptors
-
getDefaultBundleDescriptor
public ConnectorDescriptor getDefaultBundleDescriptor()
- Specified by:
getDefaultBundleDescriptorin classArchivist<ConnectorDescriptor>- Returns:
- a default BundleDescriptor for this archivist
-
postHandles
protected boolean postHandles(ReadableArchive abstractArchive) throws IOException
Description copied from class:ArchivistReturns true if this archivist is capable of handling the archive type Here we check for the existence of the deployment descriptors- Specified by:
postHandlesin classArchivist<ConnectorDescriptor>- Returns:
- true if the archivist is handling the provided archive
- Throws:
IOException
-
getArchiveExtension
protected String getArchiveExtension()
- Specified by:
getArchiveExtensionin 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:
postOpenin 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:
validatein classArchivist<ConnectorDescriptor>
-
-