Make the method for wiring in JMX for codahale a public static so it can be 
reused


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/b248d091
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/b248d091
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/b248d091

Branch: refs/heads/master
Commit: b248d091551456c2fa8cfe0530dfdfc3632fe5e4
Parents: c4921f9
Author: Daniel Kulp <dk...@apache.org>
Authored: Tue Apr 7 15:03:09 2015 -0400
Committer: Daniel Kulp <dk...@apache.org>
Committed: Tue Apr 7 16:30:25 2015 -0400

----------------------------------------------------------------------
 .../org/apache/cxf/metrics/codahale/CodahaleMetricsProvider.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/b248d091/rt/features/metrics/src/main/java/org/apache/cxf/metrics/codahale/CodahaleMetricsProvider.java
----------------------------------------------------------------------
diff --git 
a/rt/features/metrics/src/main/java/org/apache/cxf/metrics/codahale/CodahaleMetricsProvider.java
 
b/rt/features/metrics/src/main/java/org/apache/cxf/metrics/codahale/CodahaleMetricsProvider.java
index 818dfe4..b5388b7 100644
--- 
a/rt/features/metrics/src/main/java/org/apache/cxf/metrics/codahale/CodahaleMetricsProvider.java
+++ 
b/rt/features/metrics/src/main/java/org/apache/cxf/metrics/codahale/CodahaleMetricsProvider.java
@@ -61,7 +61,7 @@ public class CodahaleMetricsProvider implements 
MetricsProvider {
 
     }
     
-    protected final void setupJMXReporter(Bus b, MetricRegistry reg) {
+    public static void setupJMXReporter(Bus b, MetricRegistry reg) {
         InstrumentationManager im = 
b.getExtension(InstrumentationManager.class);
         if (im != null) {
             JmxReporter reporter = 
JmxReporter.forRegistry(reg).registerWith(im.getMBeanServer())

Reply via email to