Please don’t selectively quote your import statements.
If you are not using the spec DS annotations, please use them.
If you are using the spec DS annotations, I think you want
@Component(property-{…}….
properties= means you are pointing to a properties file resource in your bundle
from which
Hi,
I have done with DS referencing
org.apache.karaf.shell.api.console.SessionFactory.
and then using this:
* customCommand is an object that class implements
org.apache.karaf.shell.api.console.Command
* final Registry registry = sessionFactory.getRegistry();
* registry.register(customCommand);