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);
}
Aggregations