|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
@SPI(status=Stable,
useRestriction=Public)
public interface IArtifactHandler
| Nested Class Summary | |
|---|---|
static interface |
IArtifactHandler.Factory
Factory for IArtifactHandler. |
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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 -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||