Cayenne
  1. Cayenne
  2. CAY-1637

[PATCH] DataContextFactory is cumbersome to customize

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1B1
    • Fix Version/s: 3.1B1
    • Component/s: Core Library
    • Labels:
    • Environment:
      Mac 10.6

      Description

      DataContextFactory is cumbersome to customize. I want to use my own custom subclass of DataContext (which is probably the only customization ever needed, right?) and in order to do so I have to copy the complete source of DataContextFactory and replace DataContext with MyContext. It can be made much easier by refactoring the constructor call into an overridable method that does just that. CayenneContextFactory has the same problem.

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            John Huss
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 0.5h
              0.5h
              Remaining:
              Remaining Estimate - 0.5h
              0.5h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development