FileDocCategorySizeDatePackage
MBeanServerConnectionConnectionSource.javaAPI DocGlassfish v2 API3208Fri May 04 22:31:04 BST 2007com.sun.appserv.management.util.jmx

MBeanServerConnectionConnectionSource

public final class MBeanServerConnectionConnectionSource extends Object implements com.sun.appserv.management.client.ConnectionSource
A ConnectionSource which wraps an already created MBeanServerConnection

Fields Summary
protected MBeanServerConnection
mConn
Constructors Summary
public MBeanServerConnectionConnectionSource(MBeanServerConnection conn)
Create a new instance for the specified MBeanServerConnection

		mConn	= conn;
	
Methods Summary
public javax.management.MBeanServerConnectiongetExistingMBeanServerConnection()

		return( mConn );
	
public javax.management.remote.JMXConnectorgetJMXConnector(boolean forceNew)

		// we can't supply one...
		return( null );
	
public javax.management.MBeanServerConnectiongetMBeanServerConnection(boolean forceNew)

		if ( mConn == null )
		{
			throw new IOException();
		}

		return( mConn );