1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package kortsoft.kmx.jmx;
17
18 import com.germinus.easyconf.ComponentProperties;
19 import com.germinus.easyconf.EasyConf;
20
21 /***
22 * <a href="JmxConfig.java.html"><b><i>View Source</i></b></a>
23 *
24 * @author Alvaro
25 * @version $Revision: 1.1 $
26 *
27 */
28 public class JmxConfig {
29 public static final String JMX_COMPONENT_NAME="kmx-jmx";
30
31 public static final String CL_DOMAIN_PROPERTY="classLoader.domain";
32
33 private static ComponentProperties properties;
34
35 /***
36 *
37 */
38 public JmxConfig() {
39 super();
40 }
41
42 public static ComponentProperties getProperties(){
43 if (properties == null) {
44 properties = EasyConf.getConfiguration(JMX_COMPONENT_NAME).getProperties();
45 }
46 return properties;
47 }
48
49 /***
50 * @return
51 */
52 public static String getClassLoaderDomainName() {
53 return getProperties().getString(CL_DOMAIN_PROPERTY);
54 }
55
56
57 }