Remove internal dependencies on deprecated ObjectContext.localObject
--------------------------------------------------------------------

                 Key: CAY-1616
                 URL: https://issues.apache.org/jira/browse/CAY-1616
             Project: Cayenne
          Issue Type: Task
          Components: Core Library
    Affects Versions: 3.1M3
            Reporter: Andrus Adamchik
            Assignee: Andrus Adamchik


CAY-1611 introduces user-facing API for obtaining context-local objects. Still 
Cayenne internals keep using the old deprecated localObject(ObjectId, 
Persistent) method in many places. We need to create a replacement. For a 
replacement I am looking at binding a new DI service similar to this:

CrossContextMappingStrategy
   Persistent locateInContext(ObjectId id);
   Persistent locateInChildContext(Persistent parentContextObject);
   
>From there it will all be about figuring a way to inject 
>CrossContextMappingStrategy in various places where 'localObject' is used 
>currently. Also possibly BaseContext should use the first method for its 
>'localObject' implementation.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to