Re: Bundle inspection command for gogo

2018-11-13 Thread Karl Pauls
On Tue, Nov 13, 2018 at 1:56 PM Todor Boev wrote: > > Yes I know of this output. > As I said it is nearly useless compared to the equinox "bundle Id" and > "services filter" methods. > What I really want is to dump all bundle wires, all exported services, all > bound services. > In a nice list. >

Re: Bundle inspection command for gogo

2018-11-13 Thread Todor Boev
Yes I know of this output. As I said it is nearly useless compared to the equinox "bundle Id" and "services filter" methods. What I really want is to dump all bundle wires, all exported services, all bound services. In a nice list. So I guess someone has to implement Neil's suggestion. On Tue,

Re: Bundle inspection command for gogo

2018-11-13 Thread Derek Baum
There is an inspect(Object) method in org.apache.felix.gogo.runtime.CommandSessionImpl, which is used when no more specific formatter is found. It uses reflection to invoke all public no-args methods on the target object and formats each using the LINE level. For example, see that the value

Re: Bundle inspection command for gogo

2018-11-13 Thread Neil Bartlett
There is already a bundle command which returns a Bundle object. The problem is the formatting of that object, which is controlled by the org.apache.felix.service.command.Converter service. The implementation class org.apache.felix.gogo.shell.Converters (from the shell bundle) implements a format

Bundle inspection command for gogo

2018-11-13 Thread Todor Boev
Hello, Can we add a "bundle" command to gogo that will list a readable summary for a target bundle? Calling BundleContext.getBundle() and looking at the raw object print is almost useless. Also is there any reason this was not done until now? Regards, Todor