You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by Matteo Moci <mo...@gmail.com> on 2012/03/13 17:12:31 UTC

java serialization of activities

Hello,
I don't know the status of the whole abdera project and the abdera2
branch/refactoring,
anyway I am just using its activities classes to model the activity
stream in my application.

I'd like to know if anyone ever had the chance to serialize those
objects using plain java serialization.

I tried with something like this in the ASBase class (since everyone
extends it, I think it is enough):

public class ASBase
  implements Iterable<String>, Cloneable, Serializable {

  private static final long serialVersionUID = 1234L;

Is there something I am missing? Can anyone help with it?

Thanks,
Matteo


-- 
Matteo Moci
http://it.linkedin.com/in/matteomoci
http://about.me/matteomoci/bio

Re: java serialization of activities

Posted by Matteo Moci <mo...@gmail.com>.
BTW,
I solved adding also implements Serializable to Verb class and marking
ASBase's builder property as transient like this:

private final transient Function<Object[],?> builder;


On Tue, Mar 13, 2012 at 5:12 PM, Matteo Moci <mo...@gmail.com> wrote:
> Hello,
> I don't know the status of the whole abdera project and the abdera2
> branch/refactoring,
> anyway I am just using its activities classes to model the activity
> stream in my application.
>
> I'd like to know if anyone ever had the chance to serialize those
> objects using plain java serialization.
>
> I tried with something like this in the ASBase class (since everyone
> extends it, I think it is enough):
>
> public class ASBase
>  implements Iterable<String>, Cloneable, Serializable {
>
>  private static final long serialVersionUID = 1234L;
>
> Is there something I am missing? Can anyone help with it?
>
> Thanks,
> Matteo
>
>
> --
> Matteo Moci
> http://it.linkedin.com/in/matteomoci
> http://about.me/matteomoci/bio



-- 
Matteo Moci
http://it.linkedin.com/in/matteomoci
http://about.me/matteomoci/bio