|
spring-context | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.jmx.support.MBeanServerConnectionFactoryBean
public class MBeanServerConnectionFactoryBean
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 Summary | |
---|---|
MBeanServerConnectionFactoryBean()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
Creates a JMXConnector for the given settings
and exposes the associated MBeanServerConnection . |
void |
destroy()
Closes the underlying JMXConnector . |
javax.management.MBeanServerConnection |
getObject()
|
java.lang.Class<? extends javax.management.MBeanServerConnection> |
getObjectType()
|
boolean |
isSingleton()
|
void |
setBeanClassLoader(java.lang.ClassLoader classLoader)
|
void |
setConnectOnStartup(boolean connectOnStartup)
Set whether to connect to the server on startup. |
void |
setEnvironment(java.util.Properties environment)
Set the environment properties used to construct the JMXConnector
as java.util.Properties (String key/value pairs). |
void |
setEnvironmentMap(java.util.Map<java.lang.String,?> environment)
Set the environment properties used to construct the JMXConnector
as a Map of String keys and arbitrary Object values. |
void |
setServiceUrl(java.lang.String url)
Set the service URL of the remote MBeanServer . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MBeanServerConnectionFactoryBean()
Method Detail |
---|
public void setServiceUrl(java.lang.String url) throws java.net.MalformedURLException
MBeanServer
.
java.net.MalformedURLException
public void setEnvironment(java.util.Properties environment)
JMXConnector
as java.util.Properties
(String key/value pairs).
public void setEnvironmentMap(java.util.Map<java.lang.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(java.lang.ClassLoader classLoader)
setBeanClassLoader
in interface org.springframework.beans.factory.BeanClassLoaderAware
public void afterPropertiesSet() throws java.io.IOException
JMXConnector
for the given settings
and exposes the associated MBeanServerConnection
.
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.io.IOException
public javax.management.MBeanServerConnection getObject()
getObject
in interface org.springframework.beans.factory.FactoryBean<javax.management.MBeanServerConnection>
public java.lang.Class<? extends javax.management.MBeanServerConnection> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<javax.management.MBeanServerConnection>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<javax.management.MBeanServerConnection>
public void destroy() throws java.io.IOException
JMXConnector
.
destroy
in interface org.springframework.beans.factory.DisposableBean
java.io.IOException
|
spring-context | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |