public class WebSphereMBeanServerFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<MBeanServer>, org.springframework.beans.factory.InitializingBean
FactoryBean
that obtains a WebSphere MBeanServer
reference through WebSphere's proprietary AdminServiceFactory
API,
available on WebSphere 5.1 and higher.
Exposes the MBeanServer
for bean references.
This FactoryBean is a direct alternative to MBeanServerFactoryBean
,
which uses standard JMX 1.2 API to access the platform's MBeanServer.
See Javadoc for WebSphere's AdminServiceFactory
and MBeanFactory
.
MBeanServer
,
MBeanServerFactoryBean
Constructor and Description |
---|
WebSphereMBeanServerFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
MBeanServer |
getObject() |
Class<? extends MBeanServer> |
getObjectType() |
boolean |
isSingleton() |
public void afterPropertiesSet() throws MBeanServerNotFoundException
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
MBeanServerNotFoundException
public MBeanServer getObject()
getObject
in interface org.springframework.beans.factory.FactoryBean<MBeanServer>
public Class<? extends MBeanServer> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<MBeanServer>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<MBeanServer>