Hi


> > ah right, I had forgotten I had only added it to the ECM. There are
> > some problems related to this though:
> > - once you register an instance you don't have a component descriptor
> > for it so if you have code listening to component descriptor
> > registration they won't be called. Also if you have code using
> > getComponentDescriptor it may not work fine. Thus we'd need to
> > probably create some sort of component descriptor (maybe without
> > dependencies?). Or we'd need to change the signature to force the user
> > to pass a component decriptor?
>
> IMO every component should have a descriptor so we should change the
> signature to force user to put a descriptor. The fact that it also
> provide the instance is a "detail".
>

Note: I already have added this method [registerComponent(descriptor ,
instance)] in my local source tree so that I can work on the wiki macro
bridge.

- Asiri
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to