@ComponentSpecification public interface SearchIndexerConfigurationLoader extends SearchConfigurationLoader
SearchConfigurationLoader
for the SearchIndexerConfiguration
.Modifier and Type | Method and Description |
---|---|
SearchIndexerConfigurationHolder |
loadConfiguration()
This method reads the configuration from
SearchConfiguration.DEFAULT_CONFIGURATION_URL . |
SearchIndexerConfigurationHolder |
loadConfiguration(String locationUrl)
This method reads the configuration from the given
location . |
void |
validateConfiguration(SearchIndexerConfiguration configuration)
This method validates the given
configuration according to logical constraints. |
SearchIndexerConfigurationHolder loadConfiguration()
SearchConfiguration.DEFAULT_CONFIGURATION_URL
.loadConfiguration
in interface SearchConfigurationLoader
JaxbBeanHolder
.SearchIndexerConfigurationHolder loadConfiguration(String locationUrl)
location
. The configuration data is
parsed according to its format (typically XML) and returned as JaxbBeanHolder
.loadConfiguration
in interface SearchConfigurationLoader
locationUrl
- is the location where the SearchConfiguration
data shall be read from. This is
typically a path into the filesystem (e.g. "file://~/.mmm/search.xml"). Please note that "file://"
can be omitted.JaxbBeanHolder
.void validateConfiguration(SearchIndexerConfiguration configuration) throws RuntimeException
configuration
according to logical constraints.configuration
- is the SearchIndexerConfiguration
to validate.RuntimeException
- if the configuration is invalid.Copyright © 2001–2016 mmm-Team. All rights reserved.