public abstract class AbstractSearchIndexerUpdateStrategyManager extends AbstractLoggableComponent implements SearchIndexerUpdateStrategyManager
SearchIndexerUpdateStrategyManager
interface.Modifier and Type | Field and Description |
---|---|
private List<? extends SearchIndexerUpdateStrategy> |
searchIndexerUpdateStrategies |
Constructor and Description |
---|
AbstractSearchIndexerUpdateStrategyManager()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected List<? extends SearchIndexerUpdateStrategy> |
createSearchIndexerUpdateStrategies()
This method creates the
List of strategies . |
protected void |
doInitialize()
This method performs the actual
initialization . |
protected List<? extends SearchIndexerUpdateStrategy> |
getSearchIndexerUpdateStrategies()
This method gets the
List of strategies . |
SearchIndexerUpdateStrategy |
getStrategy(SearchIndexerSource source)
This method will create the
SearchIndexerUpdateStrategy for the
given source . |
void |
setSearchIndexerUpdateStrategies(List<SearchIndexerUpdateStrategy> searchIndexerUpdateStrategies) |
createLogger, getLogger
doInitialized, getInitializationState, initialize
private List<? extends SearchIndexerUpdateStrategy> searchIndexerUpdateStrategies
getSearchIndexerUpdateStrategies()
public AbstractSearchIndexerUpdateStrategyManager()
protected List<? extends SearchIndexerUpdateStrategy> getSearchIndexerUpdateStrategies()
List
of strategies
.List
of all supported
strategies
.@Inject public void setSearchIndexerUpdateStrategies(List<SearchIndexerUpdateStrategy> searchIndexerUpdateStrategies)
searchIndexerUpdateStrategies
- is the searchIndexerUpdateStrategies
to setprotected void doInitialize()
initialization
. It is called when AbstractComponent.initialize()
is
invoked for the first time. super.
AbstractComponent.doInitialize()
.doInitialize
in class AbstractLoggableComponent
protected List<? extends SearchIndexerUpdateStrategy> createSearchIndexerUpdateStrategies()
List
of strategies
. It is called on initialization
if the
strategies have NOT been set
(injected).List
of strategies
.public SearchIndexerUpdateStrategy getStrategy(SearchIndexerSource source)
SearchIndexerUpdateStrategy
for the
given source
.getStrategy
in interface SearchIndexerUpdateStrategyManager
source
- is the SearchIndexerSource
to index (incremental)
according to its update-strategy
.SearchIndexerUpdateStrategy
.Copyright © 2001–2016 mmm-Team. All rights reserved.