camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CAMEL-968) Allow for overriding of the Main.showOptions() method
Date Mon, 13 Oct 2008 11:48:53 GMT

     [ https://issues.apache.org/activemq/browse/CAMEL-968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen resolved CAMEL-968.
-------------------------------

    Resolution: Fixed

Applied path with thanks.

> 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
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 1.5.0
>
>         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.


Mime
View raw message