com.github.kristofa.brave.p6spy.P6BraveFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of brave-p6spy Show documentation
Show all versions of brave-p6spy Show documentation
p6spy integration for brave
package com.github.kristofa.brave.p6spy;
import com.p6spy.engine.event.JdbcEventListener;
import com.p6spy.engine.spy.P6Factory;
import com.p6spy.engine.spy.P6LoadableOptions;
import com.p6spy.engine.spy.option.P6OptionsRepository;
public final class P6BraveFactory implements P6Factory {
private P6BraveOptions options;
@Override
public P6LoadableOptions getOptions(P6OptionsRepository optionsRepository) {
this.options = new P6BraveOptions(optionsRepository);
return options;
}
@Override
public JdbcEventListener getJdbcEventListener() {
return new BraveP6SpyListener(options);
}
}