camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geoff Gibbs (JIRA)" <>
Subject [jira] Updated: (CAMEL-968) Allow for overriding of the Main.showOptions() method
Date Mon, 13 Oct 2008 08:36:52 GMT


Geoff Gibbs updated CAMEL-968:

    Attachment: Main.patch

> Allow for overriding of the Main.showOptions() method
> -----------------------------------------------------
>                 Key: CAMEL-968
>                 URL:
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-spring
>    Affects Versions: 1.4.0
>            Reporter: Geoff Gibbs
>            Priority: Minor
>         Attachments: Main.patch
> Currently if you subclass the org.apache.camel.spring.Main class, then the command line
options of Main are available, but using -h produces a list of options headed by:
> "Apache Camel Runner takes the following options"
> It would be nice to be able to change this in the sub-class. Overriding showOptions()
is not satisfactory and the option list is stored a a private field with no getter, meaning
the list of options cannot be generated.
> I have provided a patch for one possible solution, that allows for just the header part
of showOptions() to be overriden.
> (it also moves the generation of the information line into the Option class instead of
the showOptions method itself to allow for further customisation, if required.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message