> You could use meta-info for that I think:
> module.addComposites(MyComposite.class).setMetaInfo(new
> CommandName("cmd1"));
> in assembly, which you can look up later with an SPI visitor. Subclass
> DescriptorVisitor, implement visit for CompositeDescriptor, do
> "@Structure ApplicationSPI app" injection to get the application, visit
> it and extract the meta-info using
> descriptor.metaInfo().get(CommandName.class), and lastly instantiate
> your Composite and associate with the CommandName.

This worked charmingly well. Thanks.

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to