public static <T extends Assignable> T createFromZipFile(final Class<T> type, final File archiveFile)
        throws IllegalArgumentException, ArchiveImportException {
        // Delegate
        return getDefaultDomain().getArchiveFactory().createFromZipFile(type, archiveFile);
    }
public static < T extends Assignable > T createFromZipFile ( final Class < T > type , final File archiveFile ) throws IllegalArgumentException , ArchiveImportException { return getDefaultDomain ( ) . getArchiveFactory ( ) . createFromZipFile ( type , archiveFile ) ; }
Creates a new archive of the specified type as imported from the specified {@link File}. The file is expected to
be encoded as ZIP (ie. JAR/WAR/EAR). The name of the archive will be set to {@link File#getName()}. The archive
will be be backed by the {@link Configuration} within the {@link ShrinkWrap#getDefaultDomain()}

@param type
The type of the archive e.g. {@link org.jboss.shrinkwrap.api.spec.WebArchive}
@param archiveFile
the archiveName to use
@return An {@link Assignable} view
@throws IllegalArgumentException
If either argument is not supplied, if the specified {@link File} does not exist, or is not a valid
ZIP file
@throws org.jboss.shrinkwrap.api.importer.ArchiveImportException
If an error occurred during the import process