|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ops4j.pax.runner.OptionResolverImpl
public class OptionResolverImpl
Resolvs options by:
1. look in the cache;
2. look in command line;
3. look for an alias and if found look in the command line for the alias
3. if value is "choose" ask the user;
4. look in configuration for a default value
TODO add unit testing
| Constructor Summary | |
|---|---|
OptionResolverImpl(CommandLine commandLine,
Configuration configuration)
Creates anew option resolver. |
|
| Method Summary | |
|---|---|
java.lang.String |
get(java.lang.String name)
Returns the value of option. |
java.lang.String |
getMandatory(java.lang.String name)
Returns the value of option. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OptionResolverImpl(CommandLine commandLine,
Configuration configuration)
commandLine - command line to useconfiguration - configuration to use| Method Detail |
|---|
public java.lang.String get(java.lang.String name)
get in interface OptionResolvername - option name
public java.lang.String getMandatory(java.lang.String name)
getMandatory in interface OptionResolvername - option name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||