Search in sources :

Example 6 with Archivist

use of com.sun.enterprise.deployment.archivist.Archivist in project Payara by payara.

the class StandAloneAppClientInfo method postConstruct.

public void postConstruct() {
    Archivist archivist = archivistFactory.getArchivist(ModuleType.CAR.toString(), getClassLoader());
    if (!(archivist instanceof AppClientArchivist)) {
        throw new IllegalArgumentException("expected an app client module but " + appClientArchive.getURI().toASCIIString() + " was recognized by " + archivist.getClass().getName());
    }
    appClientArchivist = (AppClientArchivist) archivist;
    setDescriptor(appClientArchivist.getDescriptor());
}
Also used : AppClientArchivist(com.sun.enterprise.deployment.archivist.AppClientArchivist) Archivist(com.sun.enterprise.deployment.archivist.Archivist) AppClientArchivist(com.sun.enterprise.deployment.archivist.AppClientArchivist)

Aggregations

Archivist (com.sun.enterprise.deployment.archivist.Archivist)6 ReadableArchive (org.glassfish.api.deployment.archive.ReadableArchive)4 Application (com.sun.enterprise.deployment.Application)2 AppClientArchivist (com.sun.enterprise.deployment.archivist.AppClientArchivist)2 ArchivistFactory (com.sun.enterprise.deployment.archivist.ArchivistFactory)2 IOException (java.io.IOException)2 SAXParseException (org.xml.sax.SAXParseException)2 ArchiveFactory (com.sun.enterprise.deploy.shared.ArchiveFactory)1 ApplicationClientDescriptor (com.sun.enterprise.deployment.ApplicationClientDescriptor)1 ExtensionsArchivist (com.sun.enterprise.deployment.archivist.ExtensionsArchivist)1 DeploymentDescriptorFile (com.sun.enterprise.deployment.io.DeploymentDescriptorFile)1 ApplicationValidator (com.sun.enterprise.deployment.util.ApplicationValidator)1 HTMLActionReporter (com.sun.enterprise.v3.common.HTMLActionReporter)1 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1 File (java.io.File)1 ArrayList (java.util.ArrayList)1 Vector (java.util.Vector)1 ActionReport (org.glassfish.api.ActionReport)1 DeployCommandParameters (org.glassfish.api.deployment.DeployCommandParameters)1 ArchiveHandler (org.glassfish.api.deployment.archive.ArchiveHandler)1