public class SearchIndexerUpdateStrategyVcs extends BasicSearchIndexerUpdateStrategy
SearchIndexerUpdateStrategy
for
SearchIndexerSource.UPDATE_STRATEGY_LAST_MODIFIED
.Modifier and Type | Field and Description |
---|---|
private static Map<String,String> |
FOLDER2VCS_MAP |
private org.codehaus.plexus.embed.Embedder |
plexus |
private org.apache.maven.scm.manager.ScmManager |
scmManager |
CONTEXT_VARIABLE_ENTRY_UPDATE_VISITOR, CONTEXT_VARIABLE_RESOURCE_URI_SET
Constructor and Description |
---|
SearchIndexerUpdateStrategyVcs()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected org.apache.maven.scm.manager.ScmManager |
createScmManager()
This method creates the
ScmManager instance manually. |
protected String |
detectVcsType(File location)
This method tries to detect the VCS type for the given
location . |
void |
dispose()
This method is called when this component shall be destroyed.
|
protected void |
doInitialize()
This method performs the actual
initialization . |
protected org.apache.maven.scm.manager.ScmManager |
getScmManager()
This method gets the
ScmManager used to access the version-control-system (VCS). |
void |
index(UpdateStrategyArguments arguments,
SearchIndexerDataLocation location,
EntryUpdateVisitor entryUpdateVisitor)
This method indexes as single
location . |
void |
setScmManager(org.apache.maven.scm.manager.ScmManager scmManager) |
isResponsible
createEntryUpdateVisitor, getChangeType, getEntryUpdateVisitor, getIndexerDependencies, index, indexRecursive, indexRecursive, isFullIndexing, postIndex, preIndex, setIndexerDependencies
createLogger, getLogger
doInitialized, getInitializationState, initialize
private org.apache.maven.scm.manager.ScmManager scmManager
getScmManager()
private org.codehaus.plexus.embed.Embedder plexus
createScmManager()
private static final Map<String,String> FOLDER2VCS_MAP
detectVcsType(File)
public SearchIndexerUpdateStrategyVcs()
protected org.apache.maven.scm.manager.ScmManager getScmManager()
ScmManager
used to access the version-control-system (VCS).ScmManager
.public void setScmManager(org.apache.maven.scm.manager.ScmManager scmManager)
scmManager
- is the scmManager to setprotected void doInitialize()
initialization
. It is called when AbstractComponent.initialize()
is
invoked for the first time. super.
AbstractComponent.doInitialize()
.doInitialize
in class AbstractSearchIndexerUpdateStrategy
@PreDestroy public void dispose()
protected org.apache.maven.scm.manager.ScmManager createScmManager()
ScmManager
instance manually. This method is called during
initialization
if the ScmManager
has NOT been
set
(injected) otherwise.ScmManager
.protected String detectVcsType(File location) throws RuntimeException
location
.location
- is the location for which the VCS-type is requested.RuntimeException
- if the VCS-type could NOT be detected.public void index(UpdateStrategyArguments arguments, SearchIndexerDataLocation location, EntryUpdateVisitor entryUpdateVisitor)
location
.index
in class AbstractSearchIndexerUpdateStrategy
arguments
- are the UpdateStrategyArgumentsBean
.location
- is the SearchIndexerDataLocation
to index.entryUpdateVisitor
- is the EntryUpdateVisitor
.Copyright © 2001–2016 mmm-Team. All rights reserved.