Uploaded image for project: 'Torque'
  1. Torque
  2. TORQUE-159

Split generated peer classes into implementation and a static wrapper

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.3
    • Fix Version/s: 4.0-beta1
    • Component/s: None
    • Labels:
      None

      Description

      The peer classes are accessed in a static way so the behavior cannot be changed at runtime. This is bad e.g. when one wants to insert mock classes for testing.
      Therefore, the peer classes shoul be plit into a static wrapper which holds an implementation class and delegates all function calls to the implementation class. the implementation can be exchanged via a setter. The static fields should stay in the static wrapper.

        Attachments

          Activity

            People

            • Assignee:
              tfischer Thomas Fox
              Reporter:
              tfischer Thomas Fox
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: