daradurvs@gmail.com

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

daradurvs@gmail.com

Steshin Vladimir
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 | Threaded
Open this post in threaded view
|

Re: daradurvs@gmail.com

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

вт, 25 февр. 2020 г. в 14:59, Vladimir Steshin <[hidden email]>:

> 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();
>
>