Wrong topic :). Sent another e-mail. Do not raise this one pls.

вт, 25 февр. 2020 г. в 14:59, Vladimir Steshin <vlads...@gmail.com>:

> Hello, Igniters.
>
>
>
> I got a question what exactly IgniteServices#service(String name) is
> supposed to return: reference to the object or a proxy for some reason like
> IgniteServices#serviceProxy(…)? Vyacheslav D., can you tell me your opinion?
>
> public interface MyService {
>
>                public void foo();
>
> }
>
> public class MyServiceImpl implements Service, MyService {
>
>                @Override public void foo(){ … }
>
>                public void bar(){ … };
>
> }
>
>
> // Is it required to support
>
> MyServiceImpl srvc = ignite.services().service(“myService”);
>
> srvc.foo();
>
> srvc.bar();
>
>
>
> // Or is the only correct way:
>
> MyService srvc = ignite.services().service(“myService”);
>
> srvc.foo();
>
>

Reply via email to