use of com.sun.jersey.api.core.DefaultResourceConfig in project metrics by dropwizard.
the class SingletonMetricsJerseyTest method configure.
@Override
protected AppDescriptor configure() {
this.registry = new MetricRegistry();
final DefaultResourceConfig config = new DefaultResourceConfig();
config.getSingletons().add(new InstrumentedResourceMethodDispatchAdapter(registry));
config.getClasses().add(InstrumentedResource.class);
return new LowLevelAppDescriptor.Builder(config).build();
}
Aggregations