You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by Heath Kesler <he...@gmail.com> on 2012/08/22 18:46:34 UTC

a command for listing classes in a bundle

I was thinking about adding a command or adding options to an existing command that would allow the user to display a list of classes in a bundle.  This will allow users to see what classes are actually in a bundle, not what they think should be in the bundle.  Assuming can be a bad thing ;-)

I am looking for feedback on the idea, and if this should be a new command or a option on an existing command.  I was thinking it should be a new command but looking to the dev group for suggestions.

Cheers
Heath

Re: a command for listing classes in a bundle

Posted by Freeman Fang <fr...@gmail.com>.
Yeah, +1 for both
Freeman
-------------
Freeman Fang

FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: http://weibo.com/u/1473905042

On 2012-8-23, at 上午7:55, Jamie G. wrote:

> I like the bundle:classes concept as described - I've been in
> situations where such a command would have been useful.
> 
> The bundle:find-class concept sounds interesting too -- I can imagine
> a developer wanting to know what bundles export a given class in the
> running environment, then decide upon what range their import should
> have.
> 
> Depending on the feed back for the idea, and the resulting additional
> ideas perhaps you could enter a 'new feature' jira entry for each?
> 
> Cheers,
> Jamie
> 
> On Wed, Aug 22, 2012 at 3:25 PM, Jean-Baptiste Onofré <jb...@nanthrax.net> wrote:
>> As already discussed, it looks good to me (bundle:classes seems fine).
>> 
>> Regards
>> JB
>> 
>> 
>> On 08/22/2012 06:46 PM, Heath Kesler wrote:
>>> 
>>> I was thinking about adding a command or adding options to an existing
>>> command that would allow the user to display a list of classes in a bundle.
>>> This will allow users to see what classes are actually in a bundle, not what
>>> they think should be in the bundle.  Assuming can be a bad thing ;-)
>>> 
>>> I am looking for feedback on the idea, and if this should be a new command
>>> or a option on an existing command.  I was thinking it should be a new
>>> command but looking to the dev group for suggestions.
>>> 
>>> Cheers
>>> Heath
>>> 
>> 
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com


Re: a command for listing classes in a bundle

Posted by Andreas Pieber <an...@gmail.com>.
+1 for both commands; I've encountered more than one situation by now
where I could have made good use of them...

@dev namespaces: I'm kind of aligned with Achim here. While bundle is
basically the "more logical" location I think there is a command set
which is only really useful during development and should be even
possible to be hidden on production systems. There are simply commands
(like list-classes, watch, ...) even sysadmins should not play with...
But I think this should rather be discussed on a separate thread :-)

Kind regards,
Andreas

On Thu, Aug 23, 2012 at 10:42 AM, Ioannis Canellos <io...@gmail.com> wrote:
> Heath, you on fire!
>
> I can only be happy seeing people getting more and more active around karaf
> development. Keep it up!
>
> I think we all agree on the use fullness of the command and at some point
> we all wished we had them available.
>
> For me both dev and bundle scope make sense.
>
> --
> *Ioannis Canellos*
> *
> FuseSource <http://fusesource.com>
>
> **
> Blog: http://iocanel.blogspot.com
> **
> Twitter: iocanel
> *

Re: a command for listing classes in a bundle

Posted by Ioannis Canellos <io...@gmail.com>.
Heath, you on fire!

I can only be happy seeing people getting more and more active around karaf
development. Keep it up!

I think we all agree on the use fullness of the command and at some point
we all wished we had them available.

For me both dev and bundle scope make sense.

-- 
*Ioannis Canellos*
*
FuseSource <http://fusesource.com>

**
Blog: http://iocanel.blogspot.com
**
Twitter: iocanel
*

Re: a command for listing classes in a bundle

Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi,

I think those commands are useful, though I'm not sure since those are
more development time commands if it wouldn't fit better to a
dev:classes kind of style.
I know the dev scope has been remove but it's one of the things
I don't feel comfortable with cause those commands really did fit into
the development "time".

just my 2 cents,

Achim

2012/8/23 Jamie G. <ja...@gmail.com>:
> I like the bundle:classes concept as described - I've been in
> situations where such a command would have been useful.
>
> The bundle:find-class concept sounds interesting too -- I can imagine
> a developer wanting to know what bundles export a given class in the
> running environment, then decide upon what range their import should
> have.
>
> Depending on the feed back for the idea, and the resulting additional
> ideas perhaps you could enter a 'new feature' jira entry for each?
>
> Cheers,
> Jamie
>
> On Wed, Aug 22, 2012 at 3:25 PM, Jean-Baptiste Onofré <jb...@nanthrax.net> wrote:
>> As already discussed, it looks good to me (bundle:classes seems fine).
>>
>> Regards
>> JB
>>
>>
>> On 08/22/2012 06:46 PM, Heath Kesler wrote:
>>>
>>> I was thinking about adding a command or adding options to an existing
>>> command that would allow the user to display a list of classes in a bundle.
>>> This will allow users to see what classes are actually in a bundle, not what
>>> they think should be in the bundle.  Assuming can be a bad thing ;-)
>>>
>>> I am looking for feedback on the idea, and if this should be a new command
>>> or a option on an existing command.  I was thinking it should be a new
>>> command but looking to the dev group for suggestions.
>>>
>>> Cheers
>>> Heath
>>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com



-- 

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
Committer & Project Lead
OPS4J Pax for Vaadin
<http://team.ops4j.org/wiki/display/PAXVAADIN/Home> Commiter & Project
Lead
blog <http://notizblog.nierbeck.de/>

Re: a command for listing classes in a bundle

Posted by "Jamie G." <ja...@gmail.com>.
I like the bundle:classes concept as described - I've been in
situations where such a command would have been useful.

The bundle:find-class concept sounds interesting too -- I can imagine
a developer wanting to know what bundles export a given class in the
running environment, then decide upon what range their import should
have.

Depending on the feed back for the idea, and the resulting additional
ideas perhaps you could enter a 'new feature' jira entry for each?

Cheers,
Jamie

On Wed, Aug 22, 2012 at 3:25 PM, Jean-Baptiste Onofré <jb...@nanthrax.net> wrote:
> As already discussed, it looks good to me (bundle:classes seems fine).
>
> Regards
> JB
>
>
> On 08/22/2012 06:46 PM, Heath Kesler wrote:
>>
>> I was thinking about adding a command or adding options to an existing
>> command that would allow the user to display a list of classes in a bundle.
>> This will allow users to see what classes are actually in a bundle, not what
>> they think should be in the bundle.  Assuming can be a bad thing ;-)
>>
>> I am looking for feedback on the idea, and if this should be a new command
>> or a option on an existing command.  I was thinking it should be a new
>> command but looking to the dev group for suggestions.
>>
>> Cheers
>> Heath
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com

Re: a command for listing classes in a bundle

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
As already discussed, it looks good to me (bundle:classes seems fine).

Regards
JB

On 08/22/2012 06:46 PM, Heath Kesler wrote:
> I was thinking about adding a command or adding options to an existing command that would allow the user to display a list of classes in a bundle.  This will allow users to see what classes are actually in a bundle, not what they think should be in the bundle.  Assuming can be a bad thing ;-)
>
> I am looking for feedback on the idea, and if this should be a new command or a option on an existing command.  I was thinking it should be a new command but looking to the dev group for suggestions.
>
> Cheers
> Heath
>

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

Re: a command for listing classes in a bundle

Posted by Daniel Kulp <dk...@apache.org>.
On Aug 22, 2012, at 1:09 PM, Christian Schneider <ch...@die-schneider.net> wrote:

> The feature sounds interesting. I would propose bundle:classes or bundle:resources.
> 
> It could be interesting to have two flavours. Like:
> 
> bundle:classes <bundleid>
> to list all classes in a bundle or
> 
> bundle:classes <fq classname>
> This could list all bundles that have this class. Not sure if bundle:classes would be good command name in this case.

Probably something like:

bundle:find-class <classname>

or similar.

Dan



> 
> Christian
> 
> Am 22.08.2012 18:46, schrieb Heath Kesler:
>> I was thinking about adding a command or adding options to an existing command that would allow the user to display a list of classes in a bundle.  This will allow users to see what classes are actually in a bundle, not what they think should be in the bundle.  Assuming can be a bad thing ;-)
>> 
>> I am looking for feedback on the idea, and if this should be a new command or a option on an existing command.  I was thinking it should be a new command but looking to the dev group for suggestions.
>> 
>> Cheers
>> Heath
> 
> 
> -- 
> Christian Schneider
> http://www.liquid-reality.de
> 
> Open Source Architect
> Talend Application Integration Division http://www.talend.com
> 

-- 
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com


Re: a command for listing classes in a bundle

Posted by Christian Schneider <ch...@die-schneider.net>.
The feature sounds interesting. I would propose bundle:classes or 
bundle:resources.

It could be interesting to have two flavours. Like:

bundle:classes <bundleid>
to list all classes in a bundle or

bundle:classes <fq classname>
This could list all bundles that have this class. Not sure if 
bundle:classes would be good command name in this case.

Christian

Am 22.08.2012 18:46, schrieb Heath Kesler:
> I was thinking about adding a command or adding options to an existing command that would allow the user to display a list of classes in a bundle.  This will allow users to see what classes are actually in a bundle, not what they think should be in the bundle.  Assuming can be a bad thing ;-)
>
> I am looking for feedback on the idea, and if this should be a new command or a option on an existing command.  I was thinking it should be a new command but looking to the dev group for suggestions.
>
> Cheers
> Heath


-- 
  
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
Talend Application Integration Division http://www.talend.com


Re: a command for listing classes in a bundle

Posted by Johan Edstrom <se...@gmail.com>.
I like. 
If it compared what actually is there to what is exported would 
also be neat.

On Aug 22, 2012, at 10:46 AM, Heath Kesler <he...@gmail.com> wrote:

> I was thinking about adding a command or adding options to an existing command that would allow the user to display a list of classes in a bundle.  This will allow users to see what classes are actually in a bundle, not what they think should be in the bundle.  Assuming can be a bad thing ;-)
> 
> I am looking for feedback on the idea, and if this should be a new command or a option on an existing command.  I was thinking it should be a new command but looking to the dev group for suggestions.
> 
> Cheers
> Heath