|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.deployment.common.ClientArtifactsManager
public class ClientArtifactsManager
Records artifacts generated during deployment that need to be included inside the generated app client JAR so they are accessible on the runtime classpath.
An example: jaxrpc classes from web services deployment
Important node: Artifacts added to this manager are NOT downloaded to the client as separate files. In contrast, then are added to the generated client JAR file. That generated JAR, along with other JARs needed by the client, are downloaded.
A Deployer that needs to request for files to be downloaded to the client as part of the payload in the http command response should instead use DownloadableArtifactsManager. An instance of this class can be stored in the deployment context's transient app metadata so the various deployers can add to the same collection and so the app client deployer can find it and act on its contents.
Because other modules should add their artifacts before the app client
deployer processes them, the add methods do not permit
further additions once the artifacts method has been invoked.
| Constructor Summary | |
|---|---|
ClientArtifactsManager()
|
|
| Method Summary | |
|---|---|
void |
add(File baseFile,
File artifactFile)
Adds a new artifact to the collection of artifacts to be added to the client facade JAR file so they can be delivered to the client during a download. |
void |
add(URI baseURI,
URI artifactURI)
Adds a new artifact to the collection of artifacts to be included in the client facade JAR file so they can be delivered to the client during a download. |
void |
addAll(File baseFile,
Collection<File> artifactFiles)
Adds all artifacts in Collection to those to be added to the client facade JAR. |
Collection<Artifacts.FullAndPartURIs> |
artifacts()
Returns the set (in unmodifiable form) of FullAndPartURIs for the accumulated artifacts. |
boolean |
contains(File baseFile,
File artifactFile)
|
boolean |
contains(URI baseURI,
URI artifactURI)
|
static ClientArtifactsManager |
get(DeploymentContext dc)
Retreives the client artifacts store from the provided deployment context, creating one and storing it back into the DC if none is there yet. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClientArtifactsManager()
| Method Detail |
|---|
public static ClientArtifactsManager get(DeploymentContext dc)
dc - the deployment context to hold the ClientArtifactsManager object
public void add(URI baseURI,
URI artifactURI)
baseURI - absolute URI of the base directory within which the
artifact liesartifactURI - absolute or relative URI for the artifact itself
IllegalStateException - if invokes after the accumulated artifacts have been consumed
public void add(File baseFile,
File artifactFile)
baseFile - File for the base directory within which the artifact liesartifactFile - File for the artifact itself
IllegalStateException - if invoked after the accumulated artifacts have been consumed
public void addAll(File baseFile,
Collection<File> artifactFiles)
baseFile - File for the base directory within which each artifact liesartifactFiles - Collection of File objects for the artifacts to be included
IllegalStateException - if invoked after the accumulated artifacts have been consumed
public boolean contains(URI baseURI,
URI artifactURI)
public boolean contains(File baseFile,
File artifactFile)
public Collection<Artifacts.FullAndPartURIs> artifacts()
Note: Intended for use only by the app client deployer.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||