Home / Function/ obsoleteCustomClassConstructor() — netty Function Reference

obsoleteCustomClassConstructor() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

common/src/main/java/io/netty/util/ResourceLeakDetectorFactory.java lines 118–133

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

                if (ResourceLeakDetector.class.isAssignableFrom(detectorClass)) {
                    return detectorClass.getConstructor(Class.class, int.class, long.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 obsoleteCustomClassConstructor() do?
obsoleteCustomClassConstructor() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/ResourceLeakDetectorFactory.java.
Where is obsoleteCustomClassConstructor() defined?
obsoleteCustomClassConstructor() is defined in common/src/main/java/io/netty/util/ResourceLeakDetectorFactory.java at line 118.
What calls obsoleteCustomClassConstructor()?
obsoleteCustomClassConstructor() 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