Hello Shindiggers,

As part of integrating shindig into our infrastructure, I'm attempting to
extend the Person class to add two custom fields.  I'm having trouble
figuring out the cleanest way of doing this.   I'm using the Java
implementation of the container.

What I tried so far was extending
org.apache.shindig.social.opensocial.Person and adding the fields to my
subclass.  My custom implementation of PeopleService then creates instances
of my subclass.  Unfortunately, what happens is that *only* the new fields
in the subclass get serialized when the gadget makes a request.  This
appears to be because of the reflection-based serialization to JSON -- the
private fields in the Person class are unavailable to the serializer.

Does anyone have any suggestions about how to get around this?  Modifying
the core shindig code to add my container-specific customizations is not an
option for pretty obvious reasons -- keeping shindig as a binary dependency
allows me to upgrade much more cleanly as shindig itself progresses.

Cheers,
Erin

Reply via email to