@Service @Singleton public class ArchiveFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static Logger |
deplLogger |
| Constructor and Description |
|---|
ArchiveFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.glassfish.api.deployment.archive.WritableArchive |
createArchive(File path) |
org.glassfish.api.deployment.archive.WritableArchive |
createArchive(String protocol,
File path) |
org.glassfish.api.deployment.archive.WritableArchive |
createArchive(String protocol,
URI path) |
org.glassfish.api.deployment.archive.WritableArchive |
createArchive(URI path)
Creates a new archivist using the URL as the path.
|
org.glassfish.api.deployment.archive.ReadableArchive |
openArchive(File path) |
org.glassfish.api.deployment.archive.ReadableArchive |
openArchive(File path,
org.glassfish.api.deployment.DeployCommandParameters properties)
It first consults
ReadableArchiveFactory to get an archive, if it does not get then delegates to
openArchive(java.net.URI). |
org.glassfish.api.deployment.archive.ReadableArchive |
openArchive(URI path)
Opens an existing archivist using the URL as the path.
|
public static final Logger deplLogger
public org.glassfish.api.deployment.archive.WritableArchive createArchive(File path) throws IOException
IOExceptionpublic org.glassfish.api.deployment.archive.WritableArchive createArchive(String protocol, File path) throws IOException
IOExceptionpublic org.glassfish.api.deployment.archive.ReadableArchive openArchive(File path) throws IOException
IOExceptionpublic org.glassfish.api.deployment.archive.WritableArchive createArchive(URI path) throws IOException
path - to the archiveIOExceptionpublic org.glassfish.api.deployment.archive.WritableArchive createArchive(String protocol, URI path) throws IOException
IOExceptionpublic org.glassfish.api.deployment.archive.ReadableArchive openArchive(File path, org.glassfish.api.deployment.DeployCommandParameters properties) throws IOException
ReadableArchiveFactory to get an archive, if it does not get then delegates to
openArchive(java.net.URI).path - Application archive, never nullproperties - property bag, can contain for example deploy time properties. Never nullReadableArchive.IOExceptionpublic org.glassfish.api.deployment.archive.ReadableArchive openArchive(URI path) throws IOException
path - url to the existing archiveIOExceptionCopyright © 2013. All Rights Reserved.