public class BenchmarkDefinitionArtifactHandler extends Object implements IArtifactHandler, IArtifactHandler.Factory
IArtifactHandler handles artifacts of type
BenchmarkDefinitionArtifactType.
The handled artifacts are all of content type
MIME_TYPE.
Internal caches for benchmark definitions are flushed if a benchmark definition runtime
artifact is overwritten or deleted.
IArtifactHandler.Factory| Modifier and Type | Field and Description |
|---|---|
static ArtifactType |
ARTIFACT_TYPE |
static String |
MIME_TYPE |
| Constructor and Description |
|---|
BenchmarkDefinitionArtifactHandler() |
| 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() |
IArtifactHandler |
getInstance() |
RuntimeArtifact |
preProcess(RuntimeArtifact runtimeArtifact)
This method is called before deploy and overwrite.
|
public static final ArtifactType ARTIFACT_TYPE
public static final String MIME_TYPE
public IArtifactHandler getInstance()
getInstance in interface IArtifactHandler.Factorypublic ArtifactType getArtifactType()
getArtifactType in interface IArtifactHandlerpublic String getArtifactContentType(RuntimeArtifact runtimeArtifact)
IArtifactHandlergetArtifactContentType in interface IArtifactHandlerpublic RuntimeArtifact preProcess(RuntimeArtifact runtimeArtifact)
IArtifactHandlerHandler 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.
preProcess in interface IArtifactHandlerruntimeArtifact - The input artifact.public void afterOverwrite(DeployedRuntimeArtifact deployedRuntimeArtifact)
IArtifactHandlerafterOverwrite in interface IArtifactHandlerpublic void beforeDelete(DeployedRuntimeArtifact deployedRuntimeArtifact)
IArtifactHandlerbeforeDelete in interface IArtifactHandlerpublic void afterDelete(long oid)
IArtifactHandlerafterDelete in interface IArtifactHandlerCopyright © 2016 Eclipse Stardust. All Rights Reserved.