Add getter for Application's Metrics object
@@ -134,6 +134,13 @@ public abstract class Application<T extends RestConfig> {
return path;
}
+ /**
+ * Returns {@link Metrics} object
+ */
+ public final Metrics getMetrics() {
+ return this.metrics;
+ }
+
/**
* Register resources or additional Providers, ExceptionMappers, and other JAX-RS components with
* the Jersey application. This, combined with your Configuration class, is where you can
