@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 |
---|---|
WritableArchive |
createArchive(File path) |
WritableArchive |
createArchive(String protocol,
File path) |
WritableArchive |
createArchive(String protocol,
URI path) |
WritableArchive |
createArchive(URI path)
Creates a new archivist using the URL as the path.
|
ReadableArchive |
openArchive(File path) |
ReadableArchive |
openArchive(File path,
DeployCommandParameters properties)
It first consults
ReadableArchiveFactory to get an archive, if it does not get then delegates to
openArchive(java.net.URI) . |
ReadableArchive |
openArchive(URI path)
Opens an existing archivist using the URL as the path.
|
public static final Logger deplLogger
public WritableArchive createArchive(File path) throws IOException
IOException
public WritableArchive createArchive(String protocol, File path) throws IOException
IOException
public ReadableArchive openArchive(File path) throws IOException
IOException
public WritableArchive createArchive(URI path) throws IOException
path
- to the archiveIOException
public WritableArchive createArchive(String protocol, URI path) throws IOException
IOException
public ReadableArchive openArchive(File path, 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
.IOException
public ReadableArchive openArchive(URI path) throws IOException
path
- url to the existing archiveIOException
Copyright © 2019. All rights reserved.