Have you looked at http://code.google.com/p/protostuff? It allows you to skip all the code generation and simply use your existing classes (support for cyclic references too)
On Tue, Jan 25, 2011 at 10:39 PM, Marco@worldcorp <[email protected]>wrote: > Hello > i was wondering if protobuffer supports having an already existing > class embedded in the message. > What i mean: from example i have seen, use writes a .proto buffer and > protobuffer generates all related java classes. > > However, i have already existing classe which i'd like to embed in > a .proto file. > > Is that supported? > > I guess if protobuffer generates interfaces, i can get away with it > and 'rewrite' my code .. but if it has the functionality to use > existing classes, that would be appreciated > > any constraints on existing classes? i guess they all have to > implement Serializable > > thanks and regarsd > marco > > -- > You received this message because you are subscribed to the Google Groups > "Protocol Buffers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<protobuf%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/protobuf?hl=en. > > -- When the cat is away, the mouse is alone. - David Yu -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
