Re: very stupid question about lookup

Benno Markiewicz <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <CAA_aP4iww4Ema2cTavx=bziyv5yJ2PbnBibuuTXZnXUhViSz5g@mail.gmail.com>
How about an API-module?

Den 3 jan. 2017 2:36 em skrev "Peter Cheung" <[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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.