use of com.googlecode.jmxtrans.classloader.ClassLoaderEnricher in project jmxtrans by jmxtrans.
the class JmxTransformer method main.
public static void main(String[] args) throws Exception {
JmxTransConfiguration configuration = new JCommanderArgumentParser().parseOptions(args);
if (configuration.isHelp()) {
return;
}
ClassLoaderEnricher enricher = new ClassLoaderEnricher();
for (File jar : configuration.getAdditionalJars()) {
enricher.add(jar);
}
Injector injector = JmxTransModule.createInjector(configuration);
JmxTransformer transformer = injector.getInstance(JmxTransformer.class);
// Start the process
transformer.doMain();
}
Aggregations