1 4 package com.tc.management.remote.protocol; 5 6 import java.util.Map ; 7 8 import com.tc.management.remote.protocol.terracotta.ServerProvider; 9 10 public final class ProtocolProvider { 11 12 private static final String JMX_DEFAULT_CLASSLOADER_PROP = "jmx.remote.default.class.loader"; 13 private static final String JMX_PROVIDER_CLASSLOADER_PROP = "jmx.remote.protocol.provider.class.loader"; 14 private static final String JMX_PROVIDER_PROP = "jmx.remote.protocol.provider.pkgs"; 15 16 public static void addTerracottaJmxProvider(final Map environment) { 17 environment.put(JMX_DEFAULT_CLASSLOADER_PROP, ProtocolProvider.class.getClassLoader()); 18 environment.put(JMX_PROVIDER_CLASSLOADER_PROP, ServerProvider.class.getClassLoader()); 19 environment.put(JMX_PROVIDER_PROP, ProtocolProvider.class.getPackage().getName()); 20 } 21 22 } 23 | Popular Tags |