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)| 构造器和说明 |
|---|
MBeanServerConnectionFactoryBean() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet()
Creates a
JMXConnector for the given settings
and exposes the associated MBeanServerConnection. |
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
JMXConnector
as java.util.Properties (String key/value pairs). |
void |
setEnvironmentMap(Map<String,?> environment)
Set the environment properties used to construct the
JMXConnector
as a Map of 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.public 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)
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 在接口中 org.springframework.beans.factory.BeanClassLoaderAwarepublic void afterPropertiesSet()
throws IOException
JMXConnector for the given settings
and exposes the associated MBeanServerConnection.afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanIOException@Nullable public MBeanServerConnection getObject()
getObject 在接口中 org.springframework.beans.factory.FactoryBean<MBeanServerConnection>public Class<? extends MBeanServerConnection> getObjectType()
getObjectType 在接口中 org.springframework.beans.factory.FactoryBean<MBeanServerConnection>public boolean isSingleton()
isSingleton 在接口中 org.springframework.beans.factory.FactoryBean<MBeanServerConnection>public void destroy()
throws IOException
JMXConnector.destroy 在接口中 org.springframework.beans.factory.DisposableBeanIOException