Hi ,

In K4 how is it possible to inject a custom bean property to your karaf command 
?.

I am in the process of migrating my custom commands to K4. I understand that 
the new way of publishing commands is via the Manifest header Karaf-Command. 
How to inject custom properties to my command.
Is it possible to register the command like in K3 using blueprint ?

I have tried to move the class to karat.shell.api.* and then register in 
blueprint


  <command-bundle xmlns="http://karaf.apache.org/xmlns/shell/v1.1.0";>

<command>

<action class=“foo.bar.PingCommand">

<property name="repositories" ref="elasticSearchRepositories" />

</action>

</command>

    </command-bundle>

I think the namespace has to be different ??

Thanks
Jens


DISCLAIMER: "The information in this e-mail and any attachment is intended only 
for the person to whom it is addressed and may contain confidential and/or 
privileged material. If you have received this e-mail in error, kindly contact 
the sender and destroy all copies of the original communication. IBS makes no 
warranty, express or implied, nor guarantees the accuracy, adequacy or 
completeness of the information contained in this email or any attachment and 
is not liable for any errors, defects, omissions, viruses or for resultant loss 
or damage, if any, direct or indirect."

Reply via email to