|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.deployment.archivist.Archivist<Application>
com.sun.enterprise.deployment.archivist.ApplicationArchivist
@Service @Scoped(value=org.jvnet.hk2.component.PerLookup.class) public class ApplicationArchivist
This class is responsible for handling application archive files
| Field Summary |
|---|
| Fields inherited from class com.sun.enterprise.deployment.archivist.Archivist |
|---|
annotationProcessingRequested, APPCLIENT_EXTENSION, APPLICATION_EXTENSION, classLoader, CONNECTOR_EXTENSION, descriptor, EJB_EXTENSION, handleRuntimeInfo, logger, manifest, MANIFEST_VERSION_VALUE, path, UPLOAD_EXTENSION, WEB_EXTENSION, WEB_FRAGMENT_EXTENSION |
| Constructor Summary | |
|---|---|
ApplicationArchivist()
Creates new ApplicationArchivist |
|
| Method Summary | |
|---|---|
void |
copyInto(Application a,
ReadableArchive source,
WritableArchive target)
Copy this archivist to a new abstract archive |
void |
copyInto(Application a,
ReadableArchive source,
WritableArchive target,
boolean overwriteManifest)
Copy this archivist to a new abstract archive |
void |
copyInto(ReadableArchive source,
WritableArchive target)
Copy this archivist to a new abstract archive |
Application |
createApplication(ReadableArchive archive,
boolean directory)
This method creates a top level Application object for an ear. |
protected java.lang.String |
getArchiveExtension()
|
DeploymentDescriptorFile |
getConfigurationDDFile()
|
Application |
getDefaultBundleDescriptor()
/** |
XModuleType |
getModuleType()
|
DeploymentDescriptorFile |
getStandardDDFile()
|
DeploymentDescriptorFile |
getSunConfigurationDDFile()
|
DeploymentDescriptorFile |
getWLConfigurationDDFile()
|
Application |
open(ReadableArchive appArchive)
open a new application archive file, read all the deployment descriptors |
Application |
openWith(Application application,
ReadableArchive archive)
|
boolean |
performOptionalPkgDependenciesCheck(ReadableArchive archive)
Perform Optional packages dependencies checking on an archive |
protected boolean |
postHandles(ReadableArchive abstractArchive)
This method will be invoked if and only if the following is true: 1. |
boolean |
readModulesDescriptors(Application app,
ReadableArchive appArchive)
read the modules deployment descriptor from this application object using the passed archive |
void |
readRuntimeDDFromDeploymentPlan(ReadableArchive planArchive,
Application descriptor)
Read the runtime deployment descriptors (can contained in one or many file) from a deployment plan archive, set the corresponding information in the passed descriptor. |
void |
readRuntimeDeploymentDescriptor(ReadableArchive archive,
Application descriptor)
Read the runtime deployment descriptors (can contained in one or many file) set the corresponding information in the passed descriptor. |
void |
validate(java.lang.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)
writes the content of an archive to a JarFile |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ApplicationArchivist()
| Method Detail |
|---|
public XModuleType getModuleType()
getModuleType in class Archivist<Application>
protected void writeContents(ReadableArchive in,
WritableArchive out)
throws java.io.IOException
writeContents in class Archivist<Application>in - the descriptors to use for writingout - the output stream to write to
java.io.IOExceptionpublic Application getDefaultBundleDescriptor()
getDefaultBundleDescriptor in class Archivist<Application>
public Application open(ReadableArchive appArchive)
throws java.io.IOException,
org.xml.sax.SAXParseException
open in class Archivist<Application>appArchive - the file path for the J2EE Application archive
java.io.IOException
org.xml.sax.SAXParseException
public Application openWith(Application application,
ReadableArchive archive)
throws java.io.IOException,
org.xml.sax.SAXParseException
openWith in class Archivist<Application>java.io.IOException
org.xml.sax.SAXParseException
public Application createApplication(ReadableArchive archive,
boolean directory)
throws java.io.IOException,
org.xml.sax.SAXParseException
archive - the archive for the applicationdirectory - whether the application is packaged as a directory
java.io.IOException
org.xml.sax.SAXParseException
public boolean readModulesDescriptors(Application app,
ReadableArchive appArchive)
throws java.io.IOException,
org.xml.sax.SAXParseException
app - application containing the list of modules.appArchive - containing the sub modules files.
java.io.IOException
org.xml.sax.SAXParseException
public void readRuntimeDeploymentDescriptor(ReadableArchive archive,
Application descriptor)
throws java.io.IOException,
org.xml.sax.SAXParseException
readRuntimeDeploymentDescriptor in class Archivist<Application>archive - the input archivedescriptor - the initialized deployment descriptor
java.io.IOException
org.xml.sax.SAXParseException
public void readRuntimeDDFromDeploymentPlan(ReadableArchive planArchive,
Application descriptor)
throws java.io.IOException,
org.xml.sax.SAXParseException
readRuntimeDDFromDeploymentPlan in class Archivist<Application>java.io.IOException
org.xml.sax.SAXParseExceptionpublic void validate(java.lang.ClassLoader aClassLoader)
validate in class Archivist<Application>public DeploymentDescriptorFile getStandardDDFile()
getStandardDDFile in class Archivist<Application>public DeploymentDescriptorFile getConfigurationDDFile()
getConfigurationDDFile in class Archivist<Application>public DeploymentDescriptorFile getSunConfigurationDDFile()
getSunConfigurationDDFile in class Archivist<Application>public DeploymentDescriptorFile getWLConfigurationDDFile()
getWLConfigurationDDFile in class Archivist<Application>
public boolean performOptionalPkgDependenciesCheck(ReadableArchive archive)
throws java.io.IOException
performOptionalPkgDependenciesCheck in class Archivist<Application>java.io.IOException
public void copyInto(ReadableArchive source,
WritableArchive target)
throws java.io.IOException
copyInto in class Archivist<Application>source - the archive to copy fromtarget - the new archive to use to copy our contents into
java.io.IOException
public void copyInto(Application a,
ReadableArchive source,
WritableArchive target)
throws java.io.IOException
a - the deployment descriptor for an applicationsource - the source archivetarget - the target archive
java.io.IOException
public void copyInto(Application a,
ReadableArchive source,
WritableArchive target,
boolean overwriteManifest)
throws java.io.IOException
a - the deployment descriptor for an applicationsource - the source archivetarget - the target archiveoverwriteManifest - if true, the manifest in source archive overwrites the one in target
java.io.IOException
protected boolean postHandles(ReadableArchive abstractArchive)
throws java.io.IOException
Note that we will only venture a guess for case 1. JSR88 deployment of an application (ear) using InputStream without any deployment descriptor will NOT be supported at this time.
postHandles in class Archivist<Application>java.io.IOExceptionprotected java.lang.String getArchiveExtension()
getArchiveExtension in class Archivist<Application>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||