Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1637

[PATCH] DataContextFactory is cumbersome to customize

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1B1
    • 3.1B1
    • Core Library
    • 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.

      Attachments

        1. context-factory-patch.txt
          3 kB
          John Huss

        Activity

          People

            Unassigned Unassigned
            johnthuss 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