very stupid question about lookup
Peter Cheung <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <HKXPR01MB0342FC9F6536E861F3D42EFDB56E0@HKXPR01MB0342.apcprd01.prod.exchangelabs.com> |
Hi
I have implemented my own server in a module, in another module i am ok to lookup its instance by :
for (MainService s : Lookup.getDefault().lookupAll(MainService.class)) {
ModuleLib.log(s + " = " + s.peter());
}
But i need to include module A in module B. That is not right i thing, because when i did that, the toolbar button (i meant the actions) from module A will crash when i install module B. Another big question is : how about they both need to lookup each other, do that need to include each other?
thanks
from Peter