KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > management > remote > protocol > ProtocolProvider


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.management.remote.protocol;
5
6 import java.util.Map JavaDoc;
7
8 import com.tc.management.remote.protocol.terracotta.ServerProvider;
9
10 public final class ProtocolProvider {
11
12   private static final String JavaDoc JMX_DEFAULT_CLASSLOADER_PROP = "jmx.remote.default.class.loader";
13   private static final String JavaDoc JMX_PROVIDER_CLASSLOADER_PROP = "jmx.remote.protocol.provider.class.loader";
14   private static final String JavaDoc JMX_PROVIDER_PROP = "jmx.remote.protocol.provider.pkgs";
15
16   public static void addTerracottaJmxProvider(final Map JavaDoc 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