public class MBeanServerConnectionFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<MBeanServerConnection>, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
FactoryBean that creates a JMX 1.2 MBeanServerConnection
 to a remote MBeanServer exposed via a JMXServerConnector.
 Exposes the MBeanServer for bean references.MBeanServerFactoryBean, 
ConnectorServerFactoryBean, 
MBeanClientInterceptor.setServer(javax.management.MBeanServerConnection), 
NotificationListenerRegistrar.setServer(javax.management.MBeanServerConnection)| Constructor and Description | 
|---|
| MBeanServerConnectionFactoryBean() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | afterPropertiesSet()Creates a  JMXConnectorfor the given settings
 and exposes the associatedMBeanServerConnection. | 
| void | destroy()Closes the underlying  JMXConnector. | 
| MBeanServerConnection | getObject() | 
| Class<? extends MBeanServerConnection> | getObjectType() | 
| boolean | isSingleton() | 
| void | setBeanClassLoader(ClassLoader classLoader) | 
| void | setConnectOnStartup(boolean connectOnStartup)Set whether to connect to the server on startup. | 
| void | setEnvironment(Properties environment)Set the environment properties used to construct the  JMXConnectorasjava.util.Properties(String key/value pairs). | 
| void | setEnvironmentMap(Map<String,?> environment)Set the environment properties used to construct the  JMXConnectoras aMapof String keys and arbitrary Object values. | 
| void | setServiceUrl(String url)Set the service URL of the remote  MBeanServer. | 
public void setServiceUrl(String url) throws MalformedURLException
MBeanServer.MalformedURLExceptionpublic void setEnvironment(Properties environment)
JMXConnector
 as java.util.Properties (String key/value pairs).public void setEnvironmentMap(@Nullable
                              Map<String,?> environment)
JMXConnector
 as a Map of String keys and arbitrary Object values.public void setConnectOnStartup(boolean connectOnStartup)
Default is true.
 
Can be turned off to allow for late start of the JMX server. In this case, the JMX connector will be fetched on first access.
public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAwarepublic void afterPropertiesSet()
                        throws IOException
JMXConnector for the given settings
 and exposes the associated MBeanServerConnection.afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanIOException@Nullable public MBeanServerConnection getObject()
getObject in interface org.springframework.beans.factory.FactoryBean<MBeanServerConnection>public Class<? extends MBeanServerConnection> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<MBeanServerConnection>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<MBeanServerConnection>public void destroy()
             throws IOException
JMXConnector.destroy in interface org.springframework.beans.factory.DisposableBeanIOException