org.eclipse.stardust.engine.core.spi.artifact
Interface IArtifactHandler

All Known Implementing Classes:
BenchmarkDefinitionArtifactHandler

@SPI(status=Stable,
     useRestriction=Public)
public interface IArtifactHandler

Author:
Roland.Stamm

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

getArtifactType

ArtifactType getArtifactType()
Returns:
the supported artifact type.

getArtifactContentType

String getArtifactContentType(RuntimeArtifact runtimeArtifact)
Should return the MIME-type for the artifact.

Parameters:
runtimeArtifact -
Returns:
MIME-type string.

preProcess

RuntimeArtifact preProcess(RuntimeArtifact runtimeArtifact)
This method is called before deploy and overwrite.

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.

Parameters:
runtimeArtifact - The input artifact.
Returns:
pre-processed artifact.

afterOverwrite

void afterOverwrite(DeployedRuntimeArtifact deployedRuntimeArtifact)
Notifies after a runtime artifact is overwritten.

Parameters:
deployedRuntimeArtifact -

beforeDelete

void beforeDelete(DeployedRuntimeArtifact deployedRuntimeArtifact)
With this the artifact handler can e.g. check referential integrity and prevent delete if the artifact is still being required.

Parameters:
deployedRuntimeArtifact -

afterDelete

void afterDelete(long oid)
With this the artifact handler can purge caches after the artifact was deleted.

Parameters:
oid -


Copyright © 2017 Eclipse Stardust. All Rights Reserved.