public class YAMLConfigurationProvider extends AbstractChainConfigurationProvider implements ProjectConfigurationProvider
| Constructor and Description |
|---|
YAMLConfigurationProvider() |
YAMLConfigurationProvider(String fileName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChainConfig(ChainConfig chainCfg,
boolean recursive,
String before) |
void |
addConfigurationParameter(String param,
String value,
String type,
String category,
String name,
String chain,
boolean recursive) |
void |
addExcludesToChain(String chain,
List<String> excludes,
boolean recursive,
boolean setToReader,
boolean setToWriter) |
void |
addIncludesToChain(String chain,
List<String> includes,
boolean recursive,
boolean setToReader,
boolean setToWriter) |
void |
addModules(List<String> modules) |
void |
addPluginConfig(PluginConfig pluginConfig,
boolean recursive) |
void |
addProviderConfig(ProviderConfig providerCfg,
boolean recursive) |
void |
addTransformationConfig(String chain,
String path,
TransformationConfig transformationCfg,
boolean recursive,
Integer order,
String before) |
ProjectConfigurationProvider |
clone(File cfgFile) |
void |
createConfig() |
Configuration |
getConfiguration() |
File |
getConfigurationFile() |
String |
getFileExtension() |
String |
getFileName() |
com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
com.fasterxml.jackson.databind.JsonNode |
getRootNode() |
void |
init(Configuration configuration) |
void |
load() |
void |
removeChains(List<String> chains,
boolean recursive) |
void |
removeExcludesFromChain(String chain,
List<String> excludes,
boolean recursive,
boolean setToReader,
boolean setToWriter) |
void |
removeIncludesFromChain(String chain,
List<String> includes,
boolean recursive,
boolean setToReader,
boolean setToWriter) |
void |
removeModules(List<String> modules) |
void |
removePluginConfig(PluginConfig pluginConfig,
boolean recursive) |
void |
removeProviders(List<String> providers,
boolean recursive) |
void |
removeTransformations(String chain,
List<String> transformations,
boolean recursive) |
void |
setReader(String chain,
String type,
String path,
boolean recursive,
Map<String,String> params) |
void |
setWriter(String chain,
String type,
String path,
boolean recursive,
Map<String,String> params) |
void |
write(com.fasterxml.jackson.databind.JsonNode node) |
addDefaultReaderConfig, addDefaultWalker, addDefaultWriterConfigpublic YAMLConfigurationProvider()
public YAMLConfigurationProvider(String fileName)
public void init(Configuration configuration)
init in interface ConfigurationProviderpublic void load()
throws ConfigurationException
load in interface ConfigurationProviderConfigurationExceptionpublic void addPluginConfig(PluginConfig pluginConfig, boolean recursive) throws TransformerException
addPluginConfig in interface ProjectConfigurationProviderTransformerExceptionpublic void write(com.fasterxml.jackson.databind.JsonNode node)
throws TransformerException
TransformerExceptionpublic com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
public void addChainConfig(ChainConfig chainCfg, boolean recursive, String before) throws Exception
addChainConfig in interface ProjectConfigurationProviderExceptionpublic void addTransformationConfig(String chain, String path, TransformationConfig transformationCfg, boolean recursive, Integer order, String before) throws Exception
addTransformationConfig in interface ProjectConfigurationProviderExceptionpublic void createConfig()
throws IOException
createConfig in interface ProjectConfigurationProviderIOExceptionpublic com.fasterxml.jackson.databind.JsonNode getRootNode()
public String getFileName()
public void addProviderConfig(ProviderConfig providerCfg, boolean recursive) throws Exception
addProviderConfig in interface ProjectConfigurationProviderExceptionpublic void addModules(List<String> modules) throws Exception
addModules in interface ProjectConfigurationProviderExceptionpublic void removeTransformations(String chain, List<String> transformations, boolean recursive) throws Exception
removeTransformations in interface ProjectConfigurationProviderExceptionpublic void setWriter(String chain, String type, String path, boolean recursive, Map<String,String> params) throws Exception
setWriter in interface ProjectConfigurationProviderExceptionpublic void setReader(String chain, String type, String path, boolean recursive, Map<String,String> params) throws Exception
setReader in interface ProjectConfigurationProviderExceptionpublic void removePluginConfig(PluginConfig pluginConfig, boolean recursive) throws Exception
removePluginConfig in interface ProjectConfigurationProviderExceptionpublic void removeModules(List<String> modules) throws Exception
removeModules in interface ProjectConfigurationProviderExceptionpublic void removeProviders(List<String> providers, boolean recursive) throws Exception
removeProviders in interface ProjectConfigurationProviderExceptionpublic void removeChains(List<String> chains, boolean recursive) throws Exception
removeChains in interface ProjectConfigurationProviderExceptionpublic void addConfigurationParameter(String param, String value, String type, String category, String name, String chain, boolean recursive) throws Exception
addConfigurationParameter in interface ProjectConfigurationProviderExceptionpublic String getFileExtension()
getFileExtension in interface ProjectConfigurationProviderpublic Configuration getConfiguration()
getConfiguration in interface ProjectConfigurationProviderpublic File getConfigurationFile()
getConfigurationFile in interface ProjectConfigurationProviderpublic ProjectConfigurationProvider clone(File cfgFile)
clone in interface ProjectConfigurationProviderpublic void addIncludesToChain(String chain, List<String> includes, boolean recursive, boolean setToReader, boolean setToWriter) throws Exception
addIncludesToChain in interface ProjectConfigurationProviderExceptionpublic void addExcludesToChain(String chain, List<String> excludes, boolean recursive, boolean setToReader, boolean setToWriter) throws Exception
addExcludesToChain in interface ProjectConfigurationProviderExceptionpublic void removeExcludesFromChain(String chain, List<String> excludes, boolean recursive, boolean setToReader, boolean setToWriter) throws Exception
removeExcludesFromChain in interface ProjectConfigurationProviderExceptionpublic void removeIncludesFromChain(String chain, List<String> includes, boolean recursive, boolean setToReader, boolean setToWriter) throws Exception
removeIncludesFromChain in interface ProjectConfigurationProviderExceptionCopyright © 2017. All rights reserved.