Re: Issue with creating apache felix commands using Declarative Services

2015-09-22 Thread David Jencks
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

Re: Issue with creating apache felix commands using Declarative Services

2015-09-22 Thread Markus Rathgeb
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);