Re: very stupid question about lookup
geertjan wielenga <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Organization | Oracle Corporation |
| Message-ID | <[email protected]> |
https://platform.netbeans.org/tutorials/nbm-quick-start.html Gj On 3-1-2017 17:04, Peter Cheung wrote: > > 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 >