|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.mmm.util.component.base.AbstractComponent
net.sf.mmm.util.component.base.AbstractLoggableComponent
net.sf.mmm.util.cli.base.AbstractCliParserBuilder
public abstract class AbstractCliParserBuilder
This is the abstract base implementation of the CliParserBuilder
interface.
Field Summary | |
---|---|
private AnnotationUtil |
annotationUtil
|
private CollectionFactoryManager |
collectionFactoryManager
|
private CollectionReflectionUtil |
collectionReflectionUtil
|
private ComposedValueConverter |
converter
|
private PojoDescriptorBuilder |
descriptorBuilder
|
private PojoDescriptorBuilderFactory |
descriptorBuilderFactory
|
private LineWrapper |
lineWrapper
|
private NlsMessageFactory |
nlsMessageFactory
|
private NlsTemplateResolver |
nlsTemplateResolver
|
private ReflectionUtil |
reflectionUtil
|
private StringUtil |
stringUtil
|
Constructor Summary | |
---|---|
AbstractCliParserBuilder()
The constructor. |
Methods inherited from class net.sf.mmm.util.component.base.AbstractLoggableComponent |
---|
getLogger, setLogger |
Methods inherited from class net.sf.mmm.util.component.base.AbstractComponent |
---|
doInitialized, getInitializationState, initialize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private PojoDescriptorBuilderFactory descriptorBuilderFactory
getDescriptorBuilderFactory()
private PojoDescriptorBuilder descriptorBuilder
getDescriptorBuilder()
private NlsMessageFactory nlsMessageFactory
getNlsMessageFactory()
private NlsTemplateResolver nlsTemplateResolver
getNlsTemplateResolver()
private StringUtil stringUtil
getStringUtil()
private AnnotationUtil annotationUtil
getAnnotationUtil()
private ReflectionUtil reflectionUtil
getReflectionUtil()
private CollectionReflectionUtil collectionReflectionUtil
getCollectionReflectionUtil()
private CollectionFactoryManager collectionFactoryManager
getCollectionFactoryManager()
private ComposedValueConverter converter
getConverter()
private LineWrapper lineWrapper
getLineWrapper()
Constructor Detail |
---|
public AbstractCliParserBuilder()
Method Detail |
---|
protected void doInitialize()
initialization
. It is
called when AbstractComponent.initialize()
is invoked for the first time.super.AbstractComponent.doInitialize()
.
doInitialize
in class AbstractLoggableComponent
public CliParser build(Object pojo)
CliParser
instance from the given
Pojo
. The following applies for the class
reflecting this pojo:
CliOption
and / or CliArgument
.CliClass
.main-program
itself, but it
can be any Pojo
.
build
in interface CliParserBuilder
pojo
- is the annotated object for the CLI-state.
CliParser
used to
parse
the
commandline-arguments and potentially
print the help
.protected abstract CliParser buildInternal(Object state, CliState cliState)
build(Object)
internally.
state
- is the state object
.cliState
- is the according CliState
.
CliParser
.protected PojoDescriptorBuilderFactory getDescriptorBuilderFactory()
@Inject public void setDescriptorBuilderFactory(PojoDescriptorBuilderFactory descriptorBuilderFactory)
descriptorBuilderFactory
- is the descriptorBuilderFactory to setprotected PojoDescriptorBuilder getDescriptorBuilder()
public void setDescriptorBuilder(PojoDescriptorBuilder descriptorBuilder)
descriptorBuilder
- is the descriptorBuilder to setpublic CollectionFactoryManager getCollectionFactoryManager()
getCollectionFactoryManager
in interface CliParserDependencies
CollectionFactoryManager
instance to use.@Inject public void setCollectionFactoryManager(CollectionFactoryManager collectionFactoryManager)
collectionFactoryManager
- is the collectionFactoryManager to setpublic StringUtil getStringUtil()
getStringUtil
in interface CliParserDependencies
StringUtil
instance to use.@Inject public void setStringUtil(StringUtil stringUtil)
stringUtil
- is the stringUtil to setpublic AnnotationUtil getAnnotationUtil()
getAnnotationUtil
in interface CliParserDependencies
AnnotationUtil
instance to use.@Inject public void setAnnotationUtil(AnnotationUtil annotationUtil)
annotationUtil
- is the annotationUtil to setpublic CollectionReflectionUtil getCollectionReflectionUtil()
getCollectionReflectionUtil
in interface CliParserDependencies
CollectionReflectionUtil
instance to use.@Inject public void setCollectionReflectionUtil(CollectionReflectionUtil collectionReflectionUtil)
collectionReflectionUtil
- is the collectionReflectionUtil to setpublic ReflectionUtil getReflectionUtil()
getReflectionUtil
in interface CliParserDependencies
ReflectionUtil
instance to use.@Inject public void setReflectionUtil(ReflectionUtil reflectionUtil)
reflectionUtil
- is the reflectionUtil to setpublic NlsMessageFactory getNlsMessageFactory()
getNlsMessageFactory
in interface CliParserDependencies
NlsMessageFactory
instance to use.@Inject public void setNlsMessageFactory(NlsMessageFactory nlsMessageFactory)
nlsMessageFactory
- is the nlsMessageFactory to setpublic NlsTemplateResolver getNlsTemplateResolver()
getNlsTemplateResolver
in interface CliParserDependencies
NlsTemplateResolver
instance to use or
null
to use the default instance.public void setNlsTemplateResolver(NlsTemplateResolver nlsTemplateResolver)
nlsTemplateResolver
- is the NlsTemplateResolver
to use.public ComposedValueConverter getConverter()
getConverter
in interface CliParserDependencies
ComposedValueConverter
instance used to convert CLI
parameters to typed values.@Inject public void setConverter(ComposedValueConverter converter)
converter
- is the converter to setpublic LineWrapper getLineWrapper()
getLineWrapper
in interface CliParserDependencies
LineWrapper
used for justification of texts for the
help texts.@Inject public void setLineWrapper(LineWrapper lineWrapper)
lineWrapper
- is the lineWrapper to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |