T
- type of loaded objects@NoImplement public interface DescriptorLoader<T>
Modifier and Type | Method and Description |
---|---|
String |
getId() |
T |
load(File artifactFile,
Map<String,Object> attributes,
ArtifactType artifactType)
Loads a described object
|
boolean |
supportsArtifactType(ArtifactType artifactType) |
String getId()
T load(File artifactFile, Map<String,Object> attributes, ArtifactType artifactType) throws InvalidDescriptorLoaderException
artifactFile
- File
with the content of the artifact to work with. Non nullattributes
- collection of attributes describing the loader. Non null.artifactType
- the type of the artifact of the descriptor to be loaded.T
loaded with the given attributes from the artifact folder.InvalidDescriptorLoaderException
- when is not possible to load the object with the provided configuration.boolean supportsArtifactType(ArtifactType artifactType)
artifactType
- the type of the artifact of the descriptor to be loaded.Copyright © 2018. All rights reserved.