1 23 24 29 30 package com.sun.appserv.management.util.jmx; 31 32 import javax.management.MBeanServer ; 33 import javax.management.MBeanServerConnection ; 34 import javax.management.remote.JMXConnector ; 35 36 import com.sun.appserv.management.client.ConnectionSource; 37 38 39 43 public final class MBeanServerConnectionSource implements ConnectionSource 44 { 45 protected MBeanServer mServer; 46 47 50 public 51 MBeanServerConnectionSource( final MBeanServer server ) 52 { 53 mServer = server; 54 } 55 56 59 public MBeanServer 60 getMBeanServer( ) 61 { 62 return( mServer ); 63 } 64 65 public MBeanServerConnection 66 getExistingMBeanServerConnection( ) 67 { 68 return( getMBeanServer() ); 69 } 70 71 public MBeanServerConnection 72 getMBeanServerConnection( boolean forceNew ) 73 { 74 return( getExistingMBeanServerConnection() ); 75 } 76 77 78 public JMXConnector 79 getJMXConnector( boolean forceNew ) 80 { 81 return( null ); 83 } 84 } 85 | Popular Tags |