站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 jmx API Documentation 英文版文档

MBeanServerFactory (JBoss/JMX API) - JBoss 4.0.1 sp1 jmx API Documentation 英文版文档


javax.management
Class MBeanServerFactory

java.lang.Object
  extended byjavax.management.MBeanServerFactory

public class MBeanServerFactory
extends Object

MBeanServerFactory is used to create instances of MBean servers.

Version:
$Revision: 1.16 $

Revisions:

20030806 Juha Lindfors:

  • Attempts a reflected invoke to "releaseServer" method on the MBean server instance before letting go of the server reference. This allows the MBean server to do some clean up. Based on the patch submitted by Rod Burgett (Bug Tracker: #763378)
Author:
Juha Lindfors., Adrian Brock., Scott.Stark@jboss.org
See Also:
MBeanServer, MBeanServerBuilder

Method Summary
static MBeanServer createMBeanServer()
           
static MBeanServer createMBeanServer(String domain)
           
static ArrayList findMBeanServer(String agentId)
           
static ClassLoaderRepository getClassLoaderRepository(MBeanServer server)
          Returns the classloader repository for an MBeanServer
static MBeanServer newMBeanServer()
           
static MBeanServer newMBeanServer(String domain)
           
static void releaseMBeanServer(MBeanServer mbeanServer)
          Releases the reference to an MBean server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

releaseMBeanServer

public static void releaseMBeanServer(MBeanServer mbeanServer)
Releases the reference to an MBean server. A security permission check is made first if security manager has been installed.

Parameters:
mbeanServer - reference to the MBean server you want to release

createMBeanServer

public static MBeanServer createMBeanServer()

createMBeanServer

public static MBeanServer createMBeanServer(String domain)

newMBeanServer

public static MBeanServer newMBeanServer()

newMBeanServer

public static MBeanServer newMBeanServer(String domain)

findMBeanServer

public static ArrayList findMBeanServer(String agentId)

getClassLoaderRepository

public static ClassLoaderRepository getClassLoaderRepository(MBeanServer server)
Returns the classloader repository for an MBeanServer

Parameters:
server - the mbean server, pass null for the default loader repository shared by all mbeanservers
Returns:
the loader repository


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.