Hi Oliver, You may be able to find a hint in the SCR code that is part of the 3.0.0-SNAPSHOT in trunk. This component is written sans blueprint. It is a bit different than the 2.2.x branch though. For that you can look here: https://github.com/sully6768/karaf-sandbox.
Best Regards, Scott ES On Tue, Jun 26, 2012 at 2:48 PM, Oliver Pajonk <[email protected]>wrote: > Hi list, > > I have now tried for quite some time to create a shell command which > features auto completion of its single argument to a path to a file on > the local disk. I guess that using blueprint this is easily done by > basically following the tutorial at > > http://karaf.apache.org/manual/2.2.7/developers-guide/extending-console.html > and using a FileNameCompleter. > > However, since we use Guice/Peaberry a lot in our applications, > blueprint does not seem like an option to me (and - besides the > additional complexity - mixing two DI frameworks does not sound like a > good idea, anyway). I have easily managed to get the command into > Karaf, all working well. But the auto completion is driving me crazy. > In blueprint it is simply configured as a bean in an XML file - but > how to I configure this *without* blueprint? Is there an OSGi service > property I am missing? Is it impossible for some reason? > > Best, > Oliver > -- -- Scott England-Sullivan ---------------------------------- FuseSource Web: http://www.fusesource.com Blog: http://sully6768.blogspot.com Twitter: sully6768
