open class MBeanServerFactoryBean : FactoryBean<MBeanServer>, InitializingBean, DisposableBean
FactoryBean that obtains an javax.management.MBeanServer reference through the standard JMX 1.2 javax.management.MBeanServerFactory API (which is available on JDK 1.5 or as part of a JMX 1.2 provider). Exposes the MBeanServer for bean references.
By default, MBeanServerFactoryBean will always create a new MBeanServer even if one is already running. To have the MBeanServerFactoryBean attempt to locate a running MBeanServer first, set the value of the "locateExistingServerIfPossible" property to "true".
Author
Rob Harrop
Author
Juergen Hoeller
Since
1.2
See Also
#setLocateExistingServerIfPossible#locateMBeanServerjavax.management.MBeanServerjavax.management.MBeanServerFactory#findMBeanServerjavax.management.MBeanServerFactory#createMBeanServerjavax.management.MBeanServerFactory#newMBeanServerMBeanServerConnectionFactoryBeanConnectorServerFactoryBean
MBeanServerFactoryBean()
FactoryBean that obtains an javax.management.MBeanServer reference through the standard JMX 1.2 javax.management.MBeanServerFactory API (which is available on JDK 1.5 or as part of a JMX 1.2 provider). Exposes the By default, |
open fun afterPropertiesSet(): Unit
Creates the |
|
open fun destroy(): Unit
Unregisters the |
|
open fun getObject(): MBeanServer |
|
open fun getObjectType(): Class<out MBeanServer> |
|
open fun isSingleton(): Boolean |
|
open fun setAgentId(agentId: String): Unit
Set the agent id of the Default is none. If specified, this will result in an automatic attempt being made to locate the attendant MBeanServer, and (importantly) if said MBeanServer cannot be located no attempt will be made to create a new MBeanServer (and an MBeanServerNotFoundException will be thrown at resolution time). Specifying the empty String indicates the platform MBeanServer. |
|
open fun setDefaultDomain(defaultDomain: String): Unit
Set the default domain to be used by the Default is none. |
|
open fun setLocateExistingServerIfPossible(locateExistingServerIfPossible: Boolean): Unit
Set whether or not the Default is |
|
open fun setRegisterWithFactory(registerWithFactory: Boolean): Unit
Set whether to register the |