Class DefaultArtifact
A default artifact is an artifact packaged with the EventFlow fragment that an operator loads at startup. Default artifacts are optional and can be used instead of, or together with, an artifact from an external artifact server. If an operator uses both a default artifact and an external artifact then the default artifact is loaded first and then is replaced by the external artifact when the external artifact is loaded. If, at a later time, the external artifact is deactivated then the default artifact is automatically reloaded in the operator.
Default artifacts are configured in the ArtifactDescriptor
instance specified when the operator
registers for an artifact
.
Default artifacts are private to the operator and cannot be managed using the activate artifact
,
deactivate artifact
, register artifact
, and remove artifact
administration commands.
-
Constructor Summary
ConstructorDescriptionDefaultArtifact
(String defaultFile) DefaultArtifact
(String defaultFile, Optional<String> version, Optional<String> encoding, Optional<String> metadataFile) -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
DefaultArtifact
- Parameters:
defaultFile
- Resource path of file containing the default artifact.
-
DefaultArtifact
public DefaultArtifact(String defaultFile, Optional<String> version, Optional<String> encoding, Optional<String> metadataFile) - Parameters:
defaultFile
- Resource path of the file containing the default artifact.version
- Version of the default artifact.encoding
- Encoding of the default artifact.metadataFile
- Resource path of file containing the default artifact's metadata.
-
-
Method Details
-
getDefaultFile
- Returns:
- Resource path of the file containing the default artifact.
-
getVersion
- Returns:
- Version of the default artifact, if one was specified.
-
getEncoding
- Returns:
- Encoding of the default artifact, if one was specified.
-
getMetadataFile
- Returns:
- Resource path of the file containing the default artifact's metadata, if one was specified
-