private static class StaticService.ServiceParameterParser extends AbstractParameterParser<ServiceParameter,ParameterHelper.ParameterType>
_enumeratorManager, _validatorManager
Constructor and Description |
---|
ServiceParameterParser(ThreadSafeComponentManager<Enumerator> enumeratorManager,
ThreadSafeComponentManager<Validator> validatorManager)
Creates an
StaticService.ServiceParameterParser . |
Modifier and Type | Method and Description |
---|---|
protected void |
_additionalParsing(ServiceManager manager,
String pluginName,
Configuration parameterConfig,
String parameterId,
ServiceParameter parameter)
Called for additional parsing.
Default implementation does nothing. |
protected ServiceParameter |
_createParameter(Configuration parameterConfig)
Create the parameter to populate it.
|
protected Object |
_parseDefaultValue(Configuration parameterConfig,
ServiceParameter parameter)
Parses the default value.
|
protected String |
_parseId(Configuration parameterConfig)
Parses the id.
|
protected ParameterHelper.ParameterType |
_parseType(Configuration parameterConfig)
Parses the type.
|
_parseAndSetEnumerator, _parseAndSetValidator, _parseI18nizableText, _parseWidget, _parseWidgetParameters, lookupComponents, parseParameter
public ServiceParameterParser(ThreadSafeComponentManager<Enumerator> enumeratorManager, ThreadSafeComponentManager<Validator> validatorManager)
StaticService.ServiceParameterParser
.enumeratorManager
- the enumerator component manager.validatorManager
- the validator component manager.protected ServiceParameter _createParameter(Configuration parameterConfig) throws ConfigurationException
AbstractParameterParser
_createParameter
in class AbstractParameterParser<ServiceParameter,ParameterHelper.ParameterType>
parameterConfig
- the parameter configuration to use.ConfigurationException
- if the configuration is not valid.protected String _parseId(Configuration parameterConfig) throws ConfigurationException
AbstractParameterParser
_parseId
in class AbstractParameterParser<ServiceParameter,ParameterHelper.ParameterType>
parameterConfig
- the parameter configuration to use.ConfigurationException
- if the configuration is not valid.protected ParameterHelper.ParameterType _parseType(Configuration parameterConfig) throws ConfigurationException
AbstractParameterParser
_parseType
in class AbstractParameterParser<ServiceParameter,ParameterHelper.ParameterType>
parameterConfig
- the parameter configuration to use.ConfigurationException
- if the configuration is not valid.protected Object _parseDefaultValue(Configuration parameterConfig, ServiceParameter parameter)
AbstractParameterParser
_parseDefaultValue
in class AbstractParameterParser<ServiceParameter,ParameterHelper.ParameterType>
parameterConfig
- the parameter configuration.parameter
- the parameter.null
if none defined.protected void _additionalParsing(ServiceManager manager, String pluginName, Configuration parameterConfig, String parameterId, ServiceParameter parameter) throws ConfigurationException
AbstractParameterParser
_additionalParsing
in class AbstractParameterParser<ServiceParameter,ParameterHelper.ParameterType>
manager
- the sservice manager.pluginName
- the plugin name.parameterConfig
- the parameter configuration.parameterId
- the parameter id.parameter
- the parameter to populate.ConfigurationException
- if the configuration is not valid.