Re: very stupid question about lookup
Peter Cheung <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <SG2PR01MB0348966E2D42CCB5A3254070B56E0@SG2PR01MB0348.apcprd01.prod.exchangelabs.com> |
What is API module? any tutorial of that? thanks ________________________________ From: Benno Markiewicz <[email protected]> Sent: Tuesday, January 3, 2017 10:13 PM To: dev Subject: [platform-dev] Re: very stupid question about lookup How about an API-module? Den 3 jan. 2017 2:36 em skrev "Peter Cheung" <[email protected]<mailto:[email protected]>>: 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