Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8355611

Get rid of SurfaceManagerFactory

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 25
    • None
    • 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.

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

              Created:
              Updated:
              Resolved: