[jboss-jira] [JBoss JIRA] Updated: (JBCACHE-697) PojoCache Collection sub-field when detached will revert back to the original reference

Jason T. Greene (JIRA) jira-events at lists.jboss.org
Mon Apr 2 20:03:24 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBCACHE-697?page=all ]

Jason T. Greene updated JBCACHE-697:
------------------------------------

    Assignee: Jason T. Greene  (was: Ben Wang)

> PojoCache Collection sub-field when detached will revert back to the original reference
> ---------------------------------------------------------------------------------------
>
>                 Key: JBCACHE-697
>                 URL: http://jira.jboss.com/jira/browse/JBCACHE-697
>             Project: JBoss Cache
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: PojoCache
>            Reporter: Ben Wang
>         Assigned To: Jason T. Greene
>             Fix For: PojoCache 2.1.0
>
>
> In PojoCache 1.4, when a Pojo has a Collection sub-object, it will dynamically replace the reference with a corresponding ClassProxy one such that we can intercept the Collection APIs. This is in attached state. When the POJO is detached, we would simply keep the ClassProxy reference but rather point the interceptor to the original reference. This works fine except when the POJO is meant for remoting as ClassProxy is not Serializable and not for direct manipulation.
> The solution is when a POJO is detached, it will dynamically swap back the original reference and discard the ClassProxy. This way, it is semantically similar to a regular POJO as well. There will be no issue of Remoting, as an example.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list