Package org.ametys.runtime.config
Class ConfigParameterCheckerParser
- java.lang.Object
-
- org.ametys.runtime.model.checker.ItemCheckerParser
-
- org.ametys.runtime.config.ConfigParameterCheckerParser
-
public class ConfigParameterCheckerParser extends ItemCheckerParser
Parameter checker parser for configuration parameters
-
-
Field Summary
-
Fields inherited from class org.ametys.runtime.model.checker.ItemCheckerParser
_parameterCheckerManager, _pluginName
-
-
Constructor Summary
Constructors Constructor Description ConfigParameterCheckerParser(ThreadSafeComponentManager<ItemChecker> paramCheckerManager)
Instantiate a configuration parameter checker parser
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ConfigParameterCheckerDescriptor
_getParameterCheckerDescriptorInstance()
Get the parameter checker descriptor instance to useConfigParameterCheckerDescriptor
parseParameterChecker(String pluginName, Configuration paramCheckerConfig)
Parse a configuration parameter checker from an XML configuration.-
Methods inherited from class org.ametys.runtime.model.checker.ItemCheckerParser
_parseI18nizableText, _setParameterChecker, lookupComponents
-
-
-
-
Constructor Detail
-
ConfigParameterCheckerParser
public ConfigParameterCheckerParser(ThreadSafeComponentManager<ItemChecker> paramCheckerManager)
Instantiate a configuration parameter checker parser- Parameters:
paramCheckerManager
- the parameter checker.
-
-
Method Detail
-
parseParameterChecker
public ConfigParameterCheckerDescriptor parseParameterChecker(String pluginName, Configuration paramCheckerConfig) throws ConfigurationException
Parse a configuration parameter checker from an XML configuration.- Overrides:
parseParameterChecker
in classItemCheckerParser
- Parameters:
pluginName
- the plugin's name declaring this parameter.paramCheckerConfig
- the XML configuration.- Returns:
- the
ConfigParameterCheckerDescriptor
for the parsed configuration parameter checker - Throws:
ConfigurationException
- if the configuration is not valid.
-
_getParameterCheckerDescriptorInstance
protected ConfigParameterCheckerDescriptor _getParameterCheckerDescriptorInstance()
Description copied from class:ItemCheckerParser
Get the parameter checker descriptor instance to use- Overrides:
_getParameterCheckerDescriptorInstance
in classItemCheckerParser
- Returns:
- the parameter checker descriptor instance to use
-
-