|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.stardust.engine.core.spi.artifact.impl.BenchmarkDefinitionArtifactHandler
public class BenchmarkDefinitionArtifactHandler
This 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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.stardust.engine.core.spi.artifact.IArtifactHandler |
|---|
IArtifactHandler.Factory |
| Field Summary | |
|---|---|
static ArtifactType |
ARTIFACT_TYPE
|
static String |
MIME_TYPE
|
| Constructor Summary | |
|---|---|
BenchmarkDefinitionArtifactHandler()
|
|
| 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()
|
IArtifactHandler |
getInstance()
|
RuntimeArtifact |
preProcess(RuntimeArtifact runtimeArtifact)
This method is called before deploy and overwrite. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ArtifactType ARTIFACT_TYPE
public static final String MIME_TYPE
| Constructor Detail |
|---|
public BenchmarkDefinitionArtifactHandler()
| Method Detail |
|---|
public IArtifactHandler getInstance()
getInstance in interface IArtifactHandler.Factorypublic ArtifactType getArtifactType()
getArtifactType in interface IArtifactHandlerpublic String getArtifactContentType(RuntimeArtifact runtimeArtifact)
IArtifactHandler
getArtifactContentType 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)
IArtifactHandler
afterOverwrite in interface IArtifactHandlerpublic void beforeDelete(DeployedRuntimeArtifact deployedRuntimeArtifact)
IArtifactHandler
beforeDelete in interface IArtifactHandlerpublic void afterDelete(long oid)
IArtifactHandler
afterDelete in interface IArtifactHandler
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||