public abstract class BaseToolFactory extends Object
ArtifactProvider
and
calls BaseToolFactory(Map)
createArtifactMap()
and
createArtifactSerializersMap()
methods if necessary.
Constructor and Description |
---|
BaseToolFactory()
All sub-classes should have an empty constructor
|
Modifier and Type | Method and Description |
---|---|
static BaseToolFactory |
create(Class<? extends BaseToolFactory> factoryClass,
ArtifactProvider artifactProvider) |
static BaseToolFactory |
create(String subclassName,
ArtifactProvider artifactProvider) |
Map<String,Object> |
createArtifactMap()
Creates a
Map with pairs of keys and objects. |
Map<String,ArtifactSerializer> |
createArtifactSerializersMap()
Creates a
Map with pairs of keys and ArtifactSerializer . |
Map<String,String> |
createManifestEntries()
Creates the manifest entries that will be added to the model manifest
|
abstract void |
validateArtifactMap()
Validates the parsed artifacts.
|
public BaseToolFactory()
public Map<String,ArtifactSerializer> createArtifactSerializersMap()
Map
with pairs of keys and ArtifactSerializer
.
The models implementation should call this method from
BaseModel#createArtifactSerializersMap
The base implementation will return a HashMap
that should be
populated by sub-classes.
public Map<String,String> createManifestEntries()
public abstract void validateArtifactMap() throws InvalidFormatException
InvalidFormatException
.
Note:
Subclasses should generally invoke super.validateArtifactMap at the beginning
of this method.InvalidFormatException
public static BaseToolFactory create(String subclassName, ArtifactProvider artifactProvider) throws InvalidFormatException
InvalidFormatException
public static BaseToolFactory create(Class<? extends BaseToolFactory> factoryClass, ArtifactProvider artifactProvider) throws InvalidFormatException
InvalidFormatException
Copyright © 2017 The Apache Software Foundation. All rights reserved.