public class FormatIdentifierFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addFormatIdentifier(String formatIdentifierId,
FormatIdentifierConfiguration configuration)
Add a format identifier configuration
|
void |
changeConfigurationFile(String configurationPath)
Change client configuration from the Json file
|
FormatIdentifier |
getFormatIdentifierFor(String formatIdentifierId)
Instantiate the format identifier identified
|
static FormatIdentifierFactory |
getInstance()
Get the FormatIdentifierFactory instance
|
void |
removeFormatIdentifier(String formatIdentifierId)
Remove a format identifier configuration by its id
|
public final void changeConfigurationFile(String configurationPath)
configurationPath - the path to the configuration filepublic static FormatIdentifierFactory getInstance()
public FormatIdentifier getFormatIdentifierFor(String formatIdentifierId) throws FormatIdentifierNotFoundException, FormatIdentifierFactoryException, FormatIdentifierTechnicalException
formatIdentifierId - format identifier idFormatIdentifierNotFoundException - if the configuration was not foundFormatIdentifierFactoryException - if the implementation was not foundFormatIdentifierTechnicalException - if any technical error occursIllegalArgumentException - if formatIdentifierId parameter is nullpublic void addFormatIdentifier(String formatIdentifierId, FormatIdentifierConfiguration configuration)
formatIdentifierId - format identifier idconfiguration - format identifier configurationIllegalArgumentException - if the parameters are null : formatIdentifierId, configuration,
configuration.typepublic void removeFormatIdentifier(String formatIdentifierId) throws FormatIdentifierNotFoundException
formatIdentifierId - format identifier idFormatIdentifierNotFoundException - if no configuration is registered for the given formatIdentifierIdIllegalArgumentException - if the parameters are null : formatIdentifierIdCopyright © 2018 Vitam. All rights reserved.