[Json-rpc-java] Re: Json-rpc-java Digest, Vol 8, Issue 9
jv
jv at e-chiceros.com
Tue May 2 00:10:28 SGT 2006
well, I haven't thought too much about it. it's an investigation
development, so I'm not really reluctant to apply an open licensing
scheme... Something like Apache or LGPL should be nice. I can send you
the current example, but it's in Spanish (as you have already guessed,
English is not my native language ;-) ). But if you are really
interested I can translate it this week and package it in a
convenient way.
thanks!!
jv
On 4/30/06, Kevin Le <kevinle10 at gmail.com> wrote:
> I would like to find out more about your work, but first what license
> applies to it?
>
> On 4/29/06, jv <jv at e-chiceros.com> wrote:
> > Hi everyone... I have implemented a json based work... mostly similar
> > to your wonderful concept, but with support for circular references.
> > If anybody is interested, please tell me about it and perhaps I'll
> > it...
> >
> > thanks a lot of
> >
> > jv
> >
> > On 4/29/06, json-rpc-java-request at oss.metaparadigm.com
> > <json-rpc-java-request at oss.metaparadigm.com> wrote:
> > > Send Json-rpc-java mailing list submissions to
> > > json-rpc-java at oss.metaparadigm.com
> > >
> > > To subscribe or unsubscribe via the World Wide Web, visit
> > > http://oss.metaparadigm.com/mailman/listinfo/json-rpc-java
> > > or, via email, send a message with subject or body 'help' to
> > > json-rpc-java-request at oss.metaparadigm.com
> > >
> > > You can reach the person managing the list at
> > > json-rpc-java-owner at oss.metaparadigm.com
> > >
> > > When replying, please edit your Subject line so it is more specific
> > > than "Re: Contents of Json-rpc-java digest..."
> > >
> > >
> > > Today's Topics:
> > >
> > > 1. Circular references. (William Becker)
> > >
> > >
> > > ----------------------------------------------------------------------
> > >
> > > Message: 1
> > > Date: Fri, 28 Apr 2006 23:15:37 +0000
> > > From: "William Becker" <wbecker at gmail.com>
> > > Subject: [Json-rpc-java] Circular references.
> > > To: json-rpc-java at oss.metaparadigm.com
> > > Message-ID:
> > > <660b44400604281615q1e5b722ep1774ba5731613bec at mail.gmail.com>
> > > Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> > >
> > > Hi all,
> > >
> > > I've been looking at your library and it's pretty neat. I got it going with
> > > my codebase in no time, however I do need circular references implemented
> > > before I would be able to use this for my current project. So I'm wondering
> > > if any work has been done on it or if I can help out.
> > >
> > > Do you have a definite plan of attack for coding this? I've done similar
> > > things before. I've had a bit of a look over the BeanSerializer code where
> > > the circular reference exception is thrown and it seems that you just put a
> > > whole object as a value to the containing object.
> > > What I would do is, instead of returning the JSONObject from
> > > BeanSerializer.marshal(), just return the System.identityHashCode() as the
> > > id for the object, wrapped in an ObjectReference class. The id, and the
> > > object it accompanies then also needs to be put in a HashMap, mapping ids to
> > > objects. This HashMap could be within ObjectReference as a static variable,
> > > or perhaps a ObjectContext class could be maintained for a set of classes
> > > given by a single return. If there is only one ObjectReference over multiple
> > > calls, then you may get into issues of having the objects change over
> > > multiple calls to the server, and they would need to be updated accordingly.
> > > At any rate, on the Javascript side of things, whenever you try to get the
> > > value from a JSONObject, if the value is a ObjectReference, you would call
> > > getValue(), which then goes and looks up the object that it is meant to be.
> > >
> > > I don't think its possible to get caught up in circular references in this
> > > way, but I also am not sure how well this would fit into all the code: I
> > > don't think I would overriding the current getValue() method in a class,
> > > because I'm guessing that values of objects are not wrapped in a
> > > ValueHolder-type class which has such a method to override, which
> > > ObjectReference would want to extend. There are probably some things I am
> > > not aware of, but I would be keen to hear whatever criticisms you have and
> > > to implement this sometime soon.
> > >
> > > Cheers,
> > >
> > > Will
> > >
> > >
> > > ------------------------------
> > >
> > > _______________________________________________
> > > Json-rpc-java mailing list
> > > Json-rpc-java at oss.metaparadigm.com
> > > http://oss.metaparadigm.com/mailman/listinfo/json-rpc-java
> > >
> > >
> > > End of Json-rpc-java Digest, Vol 8, Issue 9
> > > *******************************************
> > >
> > _______________________________________________
> > Json-rpc-java mailing list
> > Json-rpc-java at oss.metaparadigm.com
> > http://oss.metaparadigm.com/mailman/listinfo/json-rpc-java
> >
>
More information about the Json-rpc-java
mailing list