public class SearchIndexerConfigurationLoaderImpl extends XmlBeanMapper<SearchIndexerConfigurationBean> implements SearchIndexerConfigurationLoader
SearchIndexerConfigurationLoader
.Constructor and Description |
---|
SearchIndexerConfigurationLoaderImpl()
The constructor.
|
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 . |
protected void |
validate(SearchIndexerConfigurationBean jaxbBean)
This method is invoked after the
jaxbBean has been loaded and before it is saved. |
void |
validateConfiguration(SearchIndexerConfiguration configuration)
This method validates the given
configuration according to logical constraints. |
doInitialize, getJaxbContext, getOrCreateMarshaller, getOrCreateUnmarshaller, getResourceFactory, getStaxUtil, handleEvent, isIgnoreUndefinedNodes, isXIncludeAware, loadXml, loadXml, loadXml, loadXml, saveXml, saveXml, saveXml, setResourceFactory, setStaxUtil, setXIncludeAware
createLogger, getLogger
doInitialized, getInitializationState, initialize
public SearchIndexerConfigurationLoaderImpl()
public SearchIndexerConfigurationHolder loadConfiguration()
SearchConfiguration.DEFAULT_CONFIGURATION_URL
.loadConfiguration
in interface SearchConfigurationLoader
loadConfiguration
in interface SearchIndexerConfigurationLoader
JaxbBeanHolder
.public SearchIndexerConfigurationHolder loadConfiguration(String locationUrl)
location
. The configuration data is
parsed according to its format (typically XML) and returned as JaxbBeanHolder
.loadConfiguration
in interface SearchConfigurationLoader
loadConfiguration
in interface SearchIndexerConfigurationLoader
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
.protected void validate(SearchIndexerConfigurationBean jaxbBean)
jaxbBean
has been loaded and before it is saved. It does nothing by
default but can be overridden to implement custom validation logic.validate
in class XmlBeanMapper<SearchIndexerConfigurationBean>
jaxbBean
- is the JAXB bean to validate.public void validateConfiguration(SearchIndexerConfiguration configuration) throws SearchException
configuration
according to logical constraints.validateConfiguration
in interface SearchIndexerConfigurationLoader
configuration
- is the SearchIndexerConfiguration
to validate.SearchException
Copyright © 2001–2016 mmm-Team. All rights reserved.