Draft JEP: 8263693: InetAddress host name and address lookup service provider interface
Aleksei Efimov
aleksej.efimov at oracle.com
Thu Jul 22 16:38:38 UTC 2021
Hi,
For some time now we've been considering adding a standard service
provider interface for InetAddress APIs that will allow deployment of
alternative implementations of the underlying host name and address
resolution mechanisms.
After some prototyping work we have a draft JEP written:
8263693: InetAddress host name and address lookup service provider
interface
https://bugs.openjdk.java.net/browse/JDK-8263693
The prototype implementation (still work in progress) of this JEP can be
viewed in JDK Sandbox branch:
git clone https://github.com/openjdk/jdk-sandbox.git -b
JDK-8244202-nspi-stream-branch
As part of the prototyping work we've also developed two
proof-of-concept name service providers to demonstrate and verify that
the provider interface can be used to develop name service
implementations alternative to the name service implementation shipped
with the Java platform:
PoC name service based on JNDI APIs:
https://github.com/openjdk/jdk-sandbox/blob/JDK-8263693-nspi-pocs/JndiBasedPoC/src/main/java/jdk/test/nsp/proof/jndi/ProviderImpl.java
PoC name service based on Netty library:
https://github.com/openjdk/jdk-sandbox/blob/JDK-8263693-nspi-pocs/NettyBasedPoC/src/main/java/jdk/test/nsp/proof/netty/ProviderImpl.java
Feedback on this JEP before submission would be very welcome.
Best Regards,
Aleksei
More information about the net-dev
mailing list