|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.deploy.shared.ArchiveFactory
@Service @Scoped(value=org.jvnet.hk2.component.Singleton.class) public class ArchiveFactory
This implementation of the ArchiveFactory interface is capable of creating the right abstraction of the Archive interface depending on the protocol used in the URL.
| Constructor Summary | |
|---|---|
ArchiveFactory()
|
|
| Method Summary | |
|---|---|
WritableArchive |
createArchive(java.io.File path)
|
WritableArchive |
createArchive(java.lang.String protocol,
java.io.File path)
|
WritableArchive |
createArchive(java.lang.String protocol,
java.net.URI path)
|
WritableArchive |
createArchive(java.net.URI path)
Creates a new archivist using the URL as the path. |
ReadableArchive |
openArchive(java.io.File path)
|
ReadableArchive |
openArchive(java.io.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(java.net.URI path)
Opens an existing archivist using the URL as the path. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArchiveFactory()
| Method Detail |
|---|
public WritableArchive createArchive(java.io.File path)
throws java.io.IOException
java.io.IOException
public WritableArchive createArchive(java.lang.String protocol,
java.io.File path)
throws java.io.IOException
java.io.IOException
public ReadableArchive openArchive(java.io.File path)
throws java.io.IOException
java.io.IOException
public WritableArchive createArchive(java.net.URI path)
throws java.io.IOException
path - to the archive
java.io.IOException
public WritableArchive createArchive(java.lang.String protocol,
java.net.URI path)
throws java.io.IOException
java.io.IOException
public ReadableArchive openArchive(java.io.File path,
DeployCommandParameters properties)
throws java.io.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 null
ReadableArchive.
java.io.IOException
public ReadableArchive openArchive(java.net.URI path)
throws java.io.IOException
path - url to the existing archive
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||