@SPI(status=Stable,
useRestriction=Public)
public interface IArtifactHandler
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IArtifactHandler.Factory
Factory for
IArtifactHandler. |
| Modifier and Type | Method and Description |
|---|---|
void |
afterDelete(long oid)
With this the artifact handler can purge caches after the artifact was deleted.
|
void |
afterOverwrite(DeployedRuntimeArtifact deployedRuntimeArtifact)
Notifies after a runtime artifact is overwritten.
|
void |
beforeDelete(DeployedRuntimeArtifact deployedRuntimeArtifact)
With this the artifact handler can e.g.
|
String |
getArtifactContentType(RuntimeArtifact runtimeArtifact)
Should return the MIME-type for the artifact.
|
ArtifactType |
getArtifactType() |
RuntimeArtifact |
preProcess(RuntimeArtifact runtimeArtifact)
This method is called before deploy and overwrite.
|
ArtifactType getArtifactType()
String getArtifactContentType(RuntimeArtifact runtimeArtifact)
runtimeArtifact - RuntimeArtifact preProcess(RuntimeArtifact runtimeArtifact)
Handler can pre-process the artifact before it is deployed. E.g. compile, convert, validate.
It is possible to change all fields of the RuntimeArtifact prior to deployment,
e.g. the the artifactId to change the file ending for a compiled/processed artifact.
runtimeArtifact - The input artifact.void afterOverwrite(DeployedRuntimeArtifact deployedRuntimeArtifact)
deployedRuntimeArtifact - void beforeDelete(DeployedRuntimeArtifact deployedRuntimeArtifact)
deployedRuntimeArtifact - void afterDelete(long oid)
oid - Copyright © 2016 Eclipse Stardust. All Rights Reserved.