Hi,

Just wanted to share this tip. Imagine that you need to write a new  
module but it requires some dependency on xwiki-core and xwiki-core  
also needs to use this new module... This is often the case since we  
haven't moved the model to a new module yet.

So how do you solve this circular dependency?

Solution:

* In your new module, create a component interface to isolate the new  
code from xwiki-core
* Use component to lookup the implementation. This will only be  
resolved at runtime.
* Implement the component interface in xwiki-core

Hope it'll help someone
-Vincent
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to