On 12/09/2009 09:00 PM, Kenton Varda wrote:
Actually I don't think we need DescriptorPool in Java. DescriptorPool
was primarily written for the purpose of memory management, but Java
handles that for us. If all you need is the mapping aspect, just build
a MapString, ServiceDescriptor
Is this for the RPC system? I think you're making this a lot harder than it
needs to be.
On the server side, when someone wants to export a service, they will
construct a service implementation and pass it to your system. The
com.google.protobuf.Service interface has methods getDescriptor(),
On 12/10/2009 10:13 AM, Kenton Varda wrote:
Is this for the RPC system?
yes
I think you're making this a lot harder
than it needs to be.
ah.
On the server side, when someone wants to export a service, they will
construct a service implementation and pass it to your system. The
Hello,
Given a service/method full name, I'd like to get hold of the
ServiceDescriptor, or MethodDescriptor. In C++ I would use the
DescriptorPool, but I don't see this in the java api.
Is there a way ?
Romain
--
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
No, there isn't an equivalent to the DescriptorPool in Java. If you know the
types that you want you can build a mapping yourself. Or if you'd be
interested in porting the C++ DescriptorPool to java that would be great!
2009/12/9 Romain François francoisrom...@free.fr
Hello,
Given a
Actually I don't think we need DescriptorPool in Java. DescriptorPool was
primarily written for the purpose of memory management, but Java handles
that for us. If all you need is the mapping aspect, just build a
MapString, ServiceDescriptor yourself and use it.
True, in C++ there is the global