You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Philipp Hönisch (JIRA)" <ji...@apache.org> on 2011/07/27 12:45:15 UTC

[jira] [Created] (KARAF-779) Set Priority for InfoProvider

Set Priority for InfoProvider
-----------------------------

                 Key: KARAF-779
                 URL: https://issues.apache.org/jira/browse/KARAF-779
             Project: Karaf
          Issue Type: New Feature
          Components: cellar-shell
    Affects Versions: 2.2.2
            Reporter: Philipp Hönisch
            Priority: Trivial


It is possible to extend the karaf info command with custom information and it would be great to define the priority it, e.g. if the info should be added at the top or bottom of the list.



--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

RE: [jira] [Updated] (KARAF-779) Set Priority for InfoProvider

Posted by Glen Mazza <gm...@talend.com>.
Oh, I didn't see this email -- I just commented in JIRA.  Not important at all, but my thinking was that negative numbers are on top while positive numbers are on bottom.  (Hmmm, I'm a Yankee, you two are Austrian and French -- I wonder if our different perspectives are related to the spine titling difference between our lands: http://en.wikipedia.org/wiki/Bookbinding#Spine_titling  :).

Glen

________________________________________
From: Jean-Baptiste Onofré [jb@nanthrax.net]
Sent: Saturday, July 30, 2011 8:34 AM
To: issues@karaf.apache.org
Subject: Re: [jira] [Updated] (KARAF-779) Set Priority for InfoProvider

Hi Andreas,

yeah it sounds good.
+1 for that.

Regards
JB

On 07/30/2011 11:43 AM, Andreas Pieber wrote:
> @JB: I think we can solve this by adding a priority property to the services
> writing our Karaf extensions with a priority of zero. That way client
> information can be shown above (x>  0) or below (x<  0). WDYT?
>
> 2011/7/27 Philipp Hönisch (JIRA)<ji...@apache.org>
>
>>
>>      [
>> https://issues.apache.org/jira/browse/KARAF-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>>
>> Philipp Hönisch updated KARAF-779:
>> ----------------------------------
>>
>>     Component/s:     (was: cellar-shell)
>>                  karaf-shell
>>
>>> Set Priority for InfoProvider
>>> -----------------------------
>>>
>>>                  Key: KARAF-779
>>>                  URL: https://issues.apache.org/jira/browse/KARAF-779
>>>              Project: Karaf
>>>           Issue Type: New Feature
>>>           Components: karaf-shell
>>>     Affects Versions: 2.2.2
>>>             Reporter: Philipp Hönisch
>>>             Priority: Trivial
>>>
>>> It is possible to extend the karaf info command with custom information
>> and it would be great to define the priority it, e.g. if the info should be
>> added at the top or bottom of the list.
>>
>> --
>> This message is automatically generated by JIRA.
>> For more information on JIRA, see: http://www.atlassian.com/software/jira
>>
>>
>>
>

--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: [jira] [Updated] (KARAF-779) Set Priority for InfoProvider

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Andreas,

yeah it sounds good.
+1 for that.

Regards
JB

On 07/30/2011 11:43 AM, Andreas Pieber wrote:
> @JB: I think we can solve this by adding a priority property to the services
> writing our Karaf extensions with a priority of zero. That way client
> information can be shown above (x>  0) or below (x<  0). WDYT?
>
> 2011/7/27 Philipp Hönisch (JIRA)<ji...@apache.org>
>
>>
>>      [
>> https://issues.apache.org/jira/browse/KARAF-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>>
>> Philipp Hönisch updated KARAF-779:
>> ----------------------------------
>>
>>     Component/s:     (was: cellar-shell)
>>                  karaf-shell
>>
>>> Set Priority for InfoProvider
>>> -----------------------------
>>>
>>>                  Key: KARAF-779
>>>                  URL: https://issues.apache.org/jira/browse/KARAF-779
>>>              Project: Karaf
>>>           Issue Type: New Feature
>>>           Components: karaf-shell
>>>     Affects Versions: 2.2.2
>>>             Reporter: Philipp Hönisch
>>>             Priority: Trivial
>>>
>>> It is possible to extend the karaf info command with custom information
>> and it would be great to define the priority it, e.g. if the info should be
>> added at the top or bottom of the list.
>>
>> --
>> This message is automatically generated by JIRA.
>> For more information on JIRA, see: http://www.atlassian.com/software/jira
>>
>>
>>
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: [jira] [Updated] (KARAF-779) Set Priority for InfoProvider

Posted by Andreas Pieber <an...@gmail.com>.
@JB: I think we can solve this by adding a priority property to the services
writing our Karaf extensions with a priority of zero. That way client
information can be shown above (x > 0) or below (x < 0). WDYT?

2011/7/27 Philipp Hönisch (JIRA) <ji...@apache.org>

>
>     [
> https://issues.apache.org/jira/browse/KARAF-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>
> Philipp Hönisch updated KARAF-779:
> ----------------------------------
>
>    Component/s:     (was: cellar-shell)
>                 karaf-shell
>
> > Set Priority for InfoProvider
> > -----------------------------
> >
> >                 Key: KARAF-779
> >                 URL: https://issues.apache.org/jira/browse/KARAF-779
> >             Project: Karaf
> >          Issue Type: New Feature
> >          Components: karaf-shell
> >    Affects Versions: 2.2.2
> >            Reporter: Philipp Hönisch
> >            Priority: Trivial
> >
> > It is possible to extend the karaf info command with custom information
> and it would be great to define the priority it, e.g. if the info should be
> added at the top or bottom of the list.
>
> --
> This message is automatically generated by JIRA.
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>

Re: [jira] [Updated] (KARAF-779) Set Priority for InfoProvider

Posted by Andreas Pieber <an...@gmail.com>.
@JB: I think we can solve this by adding a priority property to the services
writing our Karaf extensions with a priority of zero. That way client
information can be shown above (x > 0) or below (x < 0). WDYT?

2011/7/27 Philipp Hönisch (JIRA) <ji...@apache.org>

>
>     [
> https://issues.apache.org/jira/browse/KARAF-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>
> Philipp Hönisch updated KARAF-779:
> ----------------------------------
>
>    Component/s:     (was: cellar-shell)
>                 karaf-shell
>
> > Set Priority for InfoProvider
> > -----------------------------
> >
> >                 Key: KARAF-779
> >                 URL: https://issues.apache.org/jira/browse/KARAF-779
> >             Project: Karaf
> >          Issue Type: New Feature
> >          Components: karaf-shell
> >    Affects Versions: 2.2.2
> >            Reporter: Philipp Hönisch
> >            Priority: Trivial
> >
> > It is possible to extend the karaf info command with custom information
> and it would be great to define the priority it, e.g. if the info should be
> added at the top or bottom of the list.
>
> --
> This message is automatically generated by JIRA.
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>

[jira] [Commented] (KARAF-779) Set Priority for InfoProvider

Posted by "Philipp Hönisch (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13071724#comment-13071724 ] 

Philipp Hönisch commented on KARAF-779:
---------------------------------------

No, i was thinking about the info command, which is currently printing out some information about karaf, jvm, ... see karaf-209 .
This can be extended by exporting a service which implement the infoService interface.
But this custom info is added at the bottom of the list and it would be great to have it at the top.

> Set Priority for InfoProvider
> -----------------------------
>
>                 Key: KARAF-779
>                 URL: https://issues.apache.org/jira/browse/KARAF-779
>             Project: Karaf
>          Issue Type: New Feature
>          Components: karaf-shell
>    Affects Versions: 2.2.2
>            Reporter: Philipp Hönisch
>            Priority: Trivial
>
> It is possible to extend the karaf info command with custom information and it would be great to define the priority it, e.g. if the info should be added at the top or bottom of the list.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (KARAF-779) Set Priority for InfoProvider

Posted by "Philipp Hönisch (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Philipp Hönisch updated KARAF-779:
----------------------------------

    Component/s:     (was: cellar-shell)
                 karaf-shell

> Set Priority for InfoProvider
> -----------------------------
>
>                 Key: KARAF-779
>                 URL: https://issues.apache.org/jira/browse/KARAF-779
>             Project: Karaf
>          Issue Type: New Feature
>          Components: karaf-shell
>    Affects Versions: 2.2.2
>            Reporter: Philipp Hönisch
>            Priority: Trivial
>
> It is possible to extend the karaf info command with custom information and it would be great to define the priority it, e.g. if the info should be added at the top or bottom of the list.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (KARAF-779) Set Priority for InfoProvider

Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13071705#comment-13071705 ] 

Jean-Baptiste Onofré commented on KARAF-779:
--------------------------------------------

For bundle, we added OSGI-INF/bundle.info file providing a synopsis about the bundle.

Currently, commands (using Felix Gogo) use the description attribute of the annotation. It's only one row and without support of special ASCII characters (like bold, color, etc).

Could you share what do you have in mind ?
Is a file OSGI-INF/commands-info/${command}.info look good to you to provide extra informations (which could be formatted) ?

> Set Priority for InfoProvider
> -----------------------------
>
>                 Key: KARAF-779
>                 URL: https://issues.apache.org/jira/browse/KARAF-779
>             Project: Karaf
>          Issue Type: New Feature
>          Components: karaf-shell
>    Affects Versions: 2.2.2
>            Reporter: Philipp Hönisch
>            Priority: Trivial
>
> It is possible to extend the karaf info command with custom information and it would be great to define the priority it, e.g. if the info should be added at the top or bottom of the list.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (KARAF-779) Set Priority for InfoProvider

Posted by "Glen Mazza (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13073176#comment-13073176 ] 

Glen Mazza commented on KARAF-779:
----------------------------------

It's not just top or bottom--since you can have multiple sources of custom info data you'll probably want the ability to arrange the multiple sources as well.

Perhaps a priority level should be added to both the Karaf-Info manifest entry and the InfoProvider interface (the two ways to add custom information right now).

There are many ways to do the priority numbering.  Here's one possibility: the current Karaf default info would have always have a priority of zero, anything you want "on top" would have a negative priority number (the more negative, the more "on top"), anything you'd want at the bottom would have a positive priority number (the larger the number the more at the bottom.)  If not provided, the default priority level for any custom info would be "1", meaning it's placed at the end of the standard info.  Further the specific ordering of any custom info sharing the same priority is undefined -- customs infos with the same priority can go in any order alongside other custom infos that share the same priority level.

With just one person requesting this, the above is quite possibly overkill. OTOH this is functionality that enhances Karaf's branding capabilities.


> Set Priority for InfoProvider
> -----------------------------
>
>                 Key: KARAF-779
>                 URL: https://issues.apache.org/jira/browse/KARAF-779
>             Project: Karaf
>          Issue Type: New Feature
>          Components: karaf-shell
>    Affects Versions: 2.2.2
>            Reporter: Philipp Hönisch
>            Priority: Trivial
>
> It is possible to extend the karaf info command with custom information and it would be great to define the priority it, e.g. if the info should be added at the top or bottom of the list.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira