You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Ioannis Canellos (JIRA)" <ji...@apache.org> on 2010/10/05 23:02:34 UTC

[jira] Resolved: (KARAF-209) Allow the info command to display custom information such as Apache ServiceMix version number

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

Ioannis Canellos resolved KARAF-209.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2.0

Committed the InfoProvider interface and InfoAction.

Its quite easy to create an info provider, all you need is an implementation of the InfoProvider interface and blueprint xml.

Here is an example:

<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
    <bean id="myinfo" class="org.apache.karaf.samples.infoprovider.SampleInfoProvider">
        <property name="name" value="sample"/>
        <property name="properties">
            <props>
                <prop key="prop1" value="Some Property"/>
                <prop key="prop2" value="Some Other Property"/>
            </props>
        </property>
    </bean>

    <service ref="myinfo" interface="org.apache.karaf.shell.commands.info.InfoProvider"/>
</blueprint>

> Allow the info command to display custom information such as Apache ServiceMix version number
> ---------------------------------------------------------------------------------------------
>
>                 Key: KARAF-209
>                 URL: https://issues.apache.org/jira/browse/KARAF-209
>             Project: Karaf
>          Issue Type: New Feature
>          Components: console
>    Affects Versions: 2.0.0
>            Reporter: Claus Ibsen
>            Assignee: Ioannis Canellos
>            Priority: Minor
>             Fix For: 2.2.0
>
>
> The info command lists nice basic information about the OS, JVM, Karaf etc. All important information for support etc.
> But when using Apache ServiceMix it does not display information about ServiceMix, which would be nice to display SMX version number etc.
> And for companies distributing ServiceMix under their own label, it would be nice for them to add custom information / version as well.
> Maybe allow it to load some fixed information from a etc or properties file so custom/fixed information can be displayed. Kinda like a header to the info command.

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