Get rid of SurfaceManagerFactory

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P5
    • 25
    • Affects Version/s: None
    • Component/s: client-libs
    • 2d
    • b21
    • generic
    • generic

      `SurfaceManagerFactory` just checks a given `GraphicsConfiguration` against multiple types via `instanceof`, it has 3 platform-specific implementations, which rely on an ugly injection process.

      There is no reason to have this class at all, we could just let `GraphicsConfiguration` create a compatible `SurfaceManager` instead.

      This would reduce coupling without having to collect all surface manager types in a single place (without real need to do so).
      And this would also remove dependency on the class initialization sequence by getting rid of the injection process.

            Assignee:
            Nikita Gubarkov
            Reporter:
            Nikita Gubarkov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: