Hello, I am trying to migrate a bundle containing severals command from Karaf 2 to the new command api of karaf 4. This bundle was using blueprint to declare theses commands. previously, some commands use optionals services : translating theses commands with @Reference(optional = true) didn't seem to work.
As far as i understand CommandExtension : - If one Action use a service which is not bound, then none of the commands on the bundle are registered - The optional property of @Reference is ignored am i correct ? how can i declare a command with an optional reference without using a BundleContext ? (using a pojo looked interesting!) can i declare a command without the CommandExtender ? maybe with scr ? (i didn't found a tracker on the Action interface) Thanks -- View this message in context: http://karaf.922171.n3.nabble.com/Karaf-shell-command-and-optionals-references-tp4044793.html Sent from the Karaf - User mailing list archive at Nabble.com.
