Class JBossDetector

    • Constructor Detail

      • JBossDetector

        public JBossDetector()
    • Method Detail

      • jvmAgentStartup

        public void jvmAgentStartup​(Instrumentation instrumentation)
        Attempts to detect a JBoss modules based application server. Because getting access to the main arguments is not possible, it returns true in case the system property jboss.modules.system.pkgs is set and the org/jboss/modules/Main.class resource can be found using the class loader of this class.

        If so, it awaits the early initialization of a JBoss modules based application server by polling the system property java.util.logging.manager and waiting until the specified class specified by this property has been loaded by the JVM.

        Specified by:
        jvmAgentStartup in interface ServerDetector
        Overrides:
        jvmAgentStartup in class AbstractServerDetector
        Parameters:
        instrumentation - the Instrumentation implementation