1 24 25 package org.objectweb.cjdbc.controller.jmx; 26 27 import javax.management.MBeanServer ; 28 import javax.management.MBeanServerBuilder ; 29 import javax.management.MBeanServerDelegate ; 30 31 84 public class ChainedMBeanServerBuilder extends javax.management.MBeanServerBuilder 85 { 86 private final MBeanServerBuilder builder; 87 88 93 public ChainedMBeanServerBuilder(MBeanServerBuilder builder) 94 { 95 if (builder == null) 96 throw new IllegalArgumentException (); 97 this.builder = builder; 98 } 99 100 105 public MBeanServerDelegate newMBeanServerDelegate() 106 { 107 return getMBeanServerBuilder().newMBeanServerDelegate(); 108 } 109 110 116 public MBeanServer newMBeanServer(String defaultDomain, MBeanServer outer, 117 MBeanServerDelegate delegate) 118 { 119 return getMBeanServerBuilder().newMBeanServer(defaultDomain, outer, 120 delegate); 121 } 122 123 126 protected MBeanServerBuilder getMBeanServerBuilder() 127 { 128 return builder; 129 } 130 131 } 132 | Popular Tags |