Hi Chetan,

That made it work !!!

Thanks a lot !

Cristiano

On 20/03/13 03:02, Chetan Mehrotra wrote:
Try a line delimited string for the array value

<property name="osgi.command.function">
        spellcheck
        grammarcheck
</property>

Chetan Mehrotra


On Wed, Mar 20, 2013 at 10:51 AM, Cristiano Gavião <[email protected] <mailto:[email protected]>> wrote:

    Hello,

    I'm trying to register a command using DS but I'm getting an error
    because "osgi.command.function" is an array.

    <property name="osgi.command.function" value="spellcheck">

    I'm not using annotation because equinox doesn't implement it yet.
    So could someone tell me how is the generated xml for the
    "osgi.command.function" property of the component below?
    @Component(provides={SpellChecker.class},
                properties={@Property(name=CommandProcessor.COMMAND_SCOPE, 
value="dmsample.annotation"),
                            @Property(name=CommandProcessor.COMMAND_FUNCTION, 
values={"spellcheck"})})
    public  class SpellChecker {
         // --- Gogo Shell command
    thanks in advance and regards,

    Cristiano

    _______________________________________________
    OSGi Developer Mail List
    [email protected] <mailto:[email protected]>
    https://mail.osgi.org/mailman/listinfo/osgi-dev




_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to