
| Key: |
CLI-142
|
| Type: |
Improvement
|
| Status: |
Closed
|
| Resolution: |
Fixed
|
| Priority: |
Minor
|
| Assignee: |
Unassigned
|
| Reporter: |
Henning Schmiedehausen
|
| Votes: |
0
|
| Watchers: |
0
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
File Attachments:
|
| |
Size |
|
parser.patch |
2007-08-06 02:21 PM |
Henning Schmiedehausen |
5 kB |
|
|
| Resolution Date: |
08/May/08 06:43 AM
|
The Parser class is not really extension friendly.
- cmd is private, should either be protected or have a getter/setter pair
- options and requiredOptions should have getter/setters (requiredOptions depends on options)
- processProperties is private, should be protected
- processOptions is private, should be protected
|
|
Description
|
The Parser class is not really extension friendly.
- cmd is private, should either be protected or have a getter/setter pair
- options and requiredOptions should have getter/setters (requiredOptions depends on options)
- processProperties is private, should be protected
- processOptions is private, should be protected
|
Show » |
|
I have a dynamic Task executor, that has a fixed set of options (list, info, run) and loads an additional set of options depending on the service name given as an argument to list/info/run. So as soon as one of these three has been encountered, I use processOptions to dynamically query the task in question about its options and add it to the running parser.
(And I do it over JMX, hence I need serializable classes.
)