Home / Class/ NetUtilLocalhost6Accessor Class — netty Architecture

NetUtilLocalhost6Accessor Class — netty Architecture

Architecture documentation for the NetUtilLocalhost6Accessor class in NetUtilSubstitutions.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  dfc4341e_4a9c_9255_9eca_58b5cac6b281["NetUtilLocalhost6Accessor"]
  57f5862a_d0d4_2cbc_571e_8864156d87d0["NetUtilSubstitutions.java"]
  dfc4341e_4a9c_9255_9eca_58b5cac6b281 -->|defined in| 57f5862a_d0d4_2cbc_571e_8864156d87d0
  e6b95365_f3f6_4bf4_206f_5afe2562b726["Inet6Address()"]
  dfc4341e_4a9c_9255_9eca_58b5cac6b281 -->|method| e6b95365_f3f6_4bf4_206f_5afe2562b726
  41c4675a_47c8_5143_3495_cebe2126a625["set()"]
  dfc4341e_4a9c_9255_9eca_58b5cac6b281 -->|method| 41c4675a_47c8_5143_3495_cebe2126a625

Relationship Graph

Source Code

common/src/main/java/io/netty/util/NetUtilSubstitutions.java lines 64–73

    private static final class NetUtilLocalhost6Accessor {
        static Inet6Address get() {
            // using https://en.wikipedia.org/wiki/Initialization-on-demand_holder_idiom
            return NetUtilLocalhost6LazyHolder.LOCALHOST6;
        }

        static void set(Inet6Address ignored) {
            // a no-op setter to avoid exceptions when NetUtil is initialized at run-time
        }
    }

Frequently Asked Questions

What is the NetUtilLocalhost6Accessor class?
NetUtilLocalhost6Accessor is a class in the netty codebase, defined in common/src/main/java/io/netty/util/NetUtilSubstitutions.java.
Where is NetUtilLocalhost6Accessor defined?
NetUtilLocalhost6Accessor is defined in common/src/main/java/io/netty/util/NetUtilSubstitutions.java at line 64.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free