public class SearchIndexerMain extends AbstractSearchIndexerMain
search-indexer
according to a given configuration
. It uses springframework as IocContainer
.Modifier and Type | Field and Description |
---|---|
private IocContainer |
container
The
IocContainer . |
private String[] |
springClasses
The optional context-path for the spring-context.
|
private String |
springConfig
The optional context-path for the spring-context.
|
EXIT_CODE_CONSTRAINT_VIOLATION, EXIT_CODE_ILLEGAL_SYNTAX, EXIT_CODE_OK, EXIT_CODE_UNEXPECTED
Constructor and Description |
---|
SearchIndexerMain()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
IocContainer |
getIocContainer()
An
IocContainer is required. |
static void |
main(String[] args)
This is the main-method of this program.
|
runDefaultMode
getVersion, run
getOutputSettings, getParserBuilder, getStandardError, getStandardOutput, getStreamUtil, handleError, printHelp, run, runAndExit, setStandardError, setStandardOutput, validate
getLogger
@CliOption(name="--spring-xml", required=false, operand="FILE", usage="The optional XML based configuration used for the spring context given by {operand}. By default annotation based config is used.") private String springConfig
@CliOption(name="--spring-class", required=false, operand="CLASSES", usage="The optional list of spring @Configuration classes spring should load to configure the context. The default is {default}.") private String[] springClasses
private IocContainer container
IocContainer
.public IocContainer getIocContainer()
IocContainer
is required. Override this method to provide it.
This method gets the IocContainer
used to manage components with their implementation. It should be created
and initialized on the first call of this method. null
to avoid dependencies on a IocContainer
implementation. Override this method to use proper component management.getIocContainer
in class AbstractSearchIndexerMain
IocContainer
.SpringContainer
public static void main(String[] args)
args
- are the commandline-arguments.Copyright © 2001–2016 mmm-Team. All rights reserved.