1 22 package org.jboss.system.server; 23 24 import org.jboss.mx.util.MBeanProxyExt; 25 26 33 public class ServerConfigLocator 34 { 35 private static volatile ServerConfig instance = null; 36 37 public static ServerConfig locate() 38 { 39 if (instance == null) { 40 instance = (ServerConfig) 41 MBeanProxyExt.create(ServerConfig.class, 42 ServerConfigImplMBean.OBJECT_NAME); 43 } 44 45 return instance; 46 } 47 } 48 | Popular Tags |