You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Geoff Gibbs (JIRA)" <ji...@apache.org> on 2008/10/13 10:36:52 UTC
[jira] Updated: (CAMEL-968) Allow for overriding of the
Main.showOptions() method
[ https://issues.apache.org/activemq/browse/CAMEL-968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Geoff Gibbs updated CAMEL-968:
------------------------------
Attachment: (was: Main.patch)
> Allow for overriding of the Main.showOptions() method
> -----------------------------------------------------
>
> Key: CAMEL-968
> URL: https://issues.apache.org/activemq/browse/CAMEL-968
> 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.