Home / Function/ customClassConstructor() — netty Function Reference

customClassConstructor() — netty Function Reference

Architecture documentation for the customClassConstructor() function in ResourceLeakDetectorFactory.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  c4d6577f_c030_0f22_6a7c_461c9154c24a["customClassConstructor()"]
  a2baa9f7_c2e2_a3ea_bda8_069d2223e0f6["DefaultResourceLeakDetectorFactory"]
  c4d6577f_c030_0f22_6a7c_461c9154c24a -->|defined in| a2baa9f7_c2e2_a3ea_bda8_069d2223e0f6
  c60c5afd_0eec_4cc2_2360_bd27a5bf6351["DefaultResourceLeakDetectorFactory()"]
  c60c5afd_0eec_4cc2_2360_bd27a5bf6351 -->|calls| c4d6577f_c030_0f22_6a7c_461c9154c24a
  style c4d6577f_c030_0f22_6a7c_461c9154c24a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/ResourceLeakDetectorFactory.java lines 135–150

        private static Constructor<?> customClassConstructor(String customLeakDetector) {
            try {
                final Class<?> detectorClass = Class.forName(customLeakDetector, true,
                        PlatformDependent.getSystemClassLoader());

                if (ResourceLeakDetector.class.isAssignableFrom(detectorClass)) {
                    return detectorClass.getConstructor(Class.class, int.class);
                } else {
                    logger.error("Class {} does not inherit from ResourceLeakDetector.", customLeakDetector);
                }
            } catch (Throwable t) {
                logger.error("Could not load custom resource leak detector class provided: {}",
                        customLeakDetector, t);
            }
            return null;
        }

Domain

Subdomains

Frequently Asked Questions

What does customClassConstructor() do?
customClassConstructor() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/ResourceLeakDetectorFactory.java.
Where is customClassConstructor() defined?
customClassConstructor() is defined in common/src/main/java/io/netty/util/ResourceLeakDetectorFactory.java at line 135.
What calls customClassConstructor()?
customClassConstructor() is called by 1 function(s): DefaultResourceLeakDetectorFactory.

Analyze Your Own Codebase

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

Try Supermodel Free