You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by Vladimir Steshin <vl...@gmail.com> on 2020/02/25 11:59:25 UTC
daradurvs@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();
Re: daradurvs@gmail.com
Posted by Vladimir Steshin <vl...@gmail.com>.
Wrong topic :). Sent another e-mail. Do not raise this one pls.
вт, 25 февр. 2020 г. в 14:59, Vladimir Steshin <vl...@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();
>
>