Search in sources :

Example 1 with ExtensionsLoadedListener

use of com.newrelic.agent.extension.ExtensionsLoadedListener in project newrelic-java-agent by newrelic.

the class JarCollectorInputs method build.

public static JarCollectorInputs build(boolean jarCollectorEnabled, JarAnalystFactory jarAnalystFactory, ExecutorService executorService, Logger jarCollectorLogger) {
    ClassMatchVisitorFactory classNoticingFactory = jarCollectorEnabled ? new ClassNoticingFactory(jarAnalystFactory, executorService, jarCollectorLogger) : ClassMatchVisitorFactory.NO_OP_FACTORY;
    ExtensionsLoadedListener extensionAnalysisProducer = jarCollectorEnabled ? new ExtensionAnalysisProducer(jarAnalystFactory, executorService, jarCollectorLogger) : ExtensionsLoadedListener.NOOP;
    return new JarCollectorInputs(extensionAnalysisProducer, classNoticingFactory);
}
Also used : ClassMatchVisitorFactory(com.newrelic.agent.instrumentation.context.ClassMatchVisitorFactory) ExtensionsLoadedListener(com.newrelic.agent.extension.ExtensionsLoadedListener)

Aggregations

ExtensionsLoadedListener (com.newrelic.agent.extension.ExtensionsLoadedListener)1 ClassMatchVisitorFactory (com.newrelic.agent.instrumentation.context.ClassMatchVisitorFactory)1