vert-x3 / vertx-service-proxy

EventBus Proxy generation
Apache License 2.0
66 stars 58 forks source link

Interface and Service in groovy #51

Closed jgarcia241 closed 5 years ago

jgarcia241 commented 7 years ago

Is there a sample on how to define the interface and the service in Groovy?

Consuming from groovy seemss quite easy, but I haven't been able to define the interface and the implementeation in Groovy. Even just the implementation seems hard to achieve. Is that actually an option? an if so, does anyone has a pointer on how to do it ?

Kind regards

cescoffier commented 7 years ago

Right now the service interface can only be defined in Java.

jgarcia241 commented 7 years ago

Is it possible to do the implementation in Groovy, even if the interface is in Java? Any pointer on some sample code?

On 7 Feb 2017, at 14:34, Clement Escoffier notifications@github.com wrote:

Right now the service interface can only be defined in Java.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vert-x3/vertx-service-proxy/issues/51#issuecomment-278000750, or mute the thread https://github.com/notifications/unsubscribe-auth/ABMW_WzruC7L0rLwY5R7Q_XJFPFOF_S_ks5raHLSgaJpZM4L5TV7.

cescoffier commented 7 years ago

Yes, you can do the implementation in Groovy as soon as you implements the Java interface. However, I'm not aware of an example of that.

It would be very similar to the Java example, except that the implementation would be in Groovy.

bsbodden commented 6 years ago

@cescoffier since JRuby can implement a Java Interface, I assume that we can also implement with Ruby?

slinkydeveloper commented 5 years ago

@bsbodden it should work

I close it for inactivity, reopen if you need it