public final class ZipToSrampArchiveRegistry extends Object
ZipToSrampArchive. This
allows specific integrations (e.g. switchyard) to provide their own artifact expanders for their own
types. So the switchyard integration layer can provide a switchyard-specific extension of
ZipToSrampArchive for artifacts of type SwitchYardApplication.| Constructor and Description |
|---|
ZipToSrampArchiveRegistry() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canExpand(org.overlord.sramp.common.ArtifactType artifactType)
Returns true if an expander exists for the given type.
|
static ZipToSrampArchive |
createExpander(org.overlord.sramp.common.ArtifactType artifactType,
File zipFile)
Creates an expander for the given artifact type.
|
static ZipToSrampArchive |
createExpander(org.overlord.sramp.common.ArtifactType artifactType,
InputStream zipStream)
Creates an expander for the given artifact type.
|
protected static ZipToSrampArchiveProvider |
getProvider(org.overlord.sramp.common.ArtifactType artifactType)
Gets a provider for the given artifact type.
|
static ArchiveInfo |
inspectArchive(InputStream resourceInputStream)
Tries to match an ArchiveType based on the content of the archive.
|
public static ZipToSrampArchive createExpander(org.overlord.sramp.common.ArtifactType artifactType, InputStream zipStream) throws ZipToSrampArchiveException
artifactType - zipStream - ZipToSrampArchiveExceptionpublic static ZipToSrampArchive createExpander(org.overlord.sramp.common.ArtifactType artifactType, File zipFile) throws ZipToSrampArchiveException
artifactType - zipFile - ZipToSrampArchiveExceptionpublic static boolean canExpand(org.overlord.sramp.common.ArtifactType artifactType)
throws ZipToSrampArchiveException
artifactType - ZipToSrampArchiveExceptionprotected static ZipToSrampArchiveProvider getProvider(org.overlord.sramp.common.ArtifactType artifactType)
artifactType - public static ArchiveInfo inspectArchive(InputStream resourceInputStream) throws ZipToSrampArchiveException
InputStream - resourceInputStream, gets consumed and closed.ZipToSrampArchiveExceptionCopyright © 2011-2014 JBoss, a division of Red Hat. All Rights Reserved.