This subtask proposes to deprecate, and eventually remove, the API points
for statically configuring a system-wide factory for the Soket/SocketServer types in
the java.net package. Specifically, the following:
* Methods:
1) static void ServerSocket.setSocketFactory​(SocketImplFactory fac)
2) static void Socket.setSocketImplFactory​(SocketImplFactory fac)
* Types
a) java.net SocketImplFactory
The java.net SocketImplFactory can be deprecated too, but we might not be able to remove it completely.
The alternative to using ServerSocket.setSocketFactory and Socket.setSocketImplFactory is to subclass Socket/ServerSocket and call the constructor that takes a SocketImpl.
for statically configuring a system-wide factory for the Soket/SocketServer types in
the java.net package. Specifically, the following:
* Methods:
1) static void ServerSocket.setSocketFactory​(SocketImplFactory fac)
2) static void Socket.setSocketImplFactory​(SocketImplFactory fac)
* Types
a) java.net SocketImplFactory
The java.net SocketImplFactory can be deprecated too, but we might not be able to remove it completely.
The alternative to using ServerSocket.setSocketFactory and Socket.setSocketImplFactory is to subclass Socket/ServerSocket and call the constructor that takes a SocketImpl.
- links to
-
Review openjdk/jdk/2352