You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2010/05/03 05:35:56 UTC

[jira] Closed: (CAY-1425) Remove Configuration sharedConfiguration singleton affecting DataContext deserialization, CayenneDataObject XML deserialization, DataContext static factory method

     [ https://issues.apache.org/jira/browse/CAY-1425?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrus Adamchik closed CAY-1425.
--------------------------------

    Resolution: Fixed

> Remove Configuration sharedConfiguration singleton affecting DataContext deserialization, CayenneDataObject XML deserialization, DataContext static factory method
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAY-1425
>                 URL: https://issues.apache.org/jira/browse/CAY-1425
>             Project: Cayenne
>          Issue Type: Task
>          Components: Core Library
>    Affects Versions: 3.1M1
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>             Fix For: 3.1M1
>
>
> This is related to CAY-1414... Will remove a static singelton Configuration.getSharedConfiguration(). It affects the following areas:
> 1. DataContext deserilaization
> 2. CayenneDataObject deserilaization from XML
> * DataContext.createDataContext(...)
> (1) and (2) will rely on an alternative deserialization strategy based on a static ThreadLocal<DataChannel> attached to BaseContext. That would allow user applications to set a contextual channel instance as needed and in a thread-safe manner. CayenneFilter will be providing thread-local DataChannel automatically. 
> (3) These methods will be removed as DataContext should be created based on the DI runtime.
> This Jira resolves a bunch of long standing TODO's in the code.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.