-
Enhancement
-
Resolution: Fixed
-
P5
-
None
-
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.
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.
- links to
-
Commit(master) openjdk/jdk/40e7986c
-
Review(master) openjdk/jdk/24875