[xwiki-devs] Tip for writing new component depending on xwiki-core
4 Jun
2008
4 Jun
'08
8:42 p.m.
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
6658
Age (days ago)
6658
Last active (days ago)
0 comments
1 participants
participants (1)
-
Vincent Massol