1 24 25 package org.objectweb.cjdbc.controller.jmx; 26 27 import javax.management.MBeanServer ; 28 import javax.management.MBeanServerDelegate ; 29 30 37 public class MBeanServerBuilder extends ChainedMBeanServerBuilder 38 { 39 42 public MBeanServerBuilder() 43 { 44 super(new javax.management.MBeanServerBuilder ()); 45 } 46 47 51 public MBeanServer newMBeanServer(String defaultDomain, MBeanServer outer, 52 MBeanServerDelegate delegate) 53 { 54 AuthenticatingMBeanServer extern = new AuthenticatingMBeanServer(); 55 MBeanServer nested = getMBeanServerBuilder().newMBeanServer(defaultDomain, 56 outer == null ? extern : outer, delegate); 57 extern.setMBeanServer(nested); 58 return extern; 59 } 60 } 61 | Popular Tags |