| java.lang.Object org.springframework.jmx.support.MBeanServerFactoryBean
Field Summary | |
final protected Log | logger |
Method Summary | |
public void | afterPropertiesSet() Creates the MBeanServer instance. | protected MBeanServer | createMBeanServer(String defaultDomain, boolean registerWithFactory) Create a new MBeanServer instance and register it with the
MBeanServerFactory , if desired. | public void | destroy() Unregisters the MBeanServer instance, if necessary. | public Object | getObject() | public Class | getObjectType() | public boolean | isSingleton() | protected MBeanServer | locateMBeanServer(String agentId) Attempt to locate an existing MBeanServer .
Called if locateExistingServerIfPossible is set to true .
The default implementation attempts to find an MBeanServer using
a standard lookup. | public void | setAgentId(String agentId) Set the agent id of the MBeanServer to locate.
Default is none. | public void | setDefaultDomain(String defaultDomain) Set the default domain to be used by the MBeanServer ,
to be passed to MBeanServerFactory.createMBeanServer()
or MBeanServerFactory.findMBeanServer(). | public void | setLocateExistingServerIfPossible(boolean locateExistingServerIfPossible) Set whether or not the MBeanServerFactoryBean should attempt
to locate a running MBeanServer before creating one. | public void | setRegisterWithFactory(boolean registerWithFactory) Set whether to register the MBeanServer with the
MBeanServerFactory , making it available through
MBeanServerFactory.findMBeanServer(). |
logger | final protected Log logger(Code) | | |
destroy | public void destroy()(Code) | | Unregisters the MBeanServer instance, if necessary.
|
isSingleton | public boolean isSingleton()(Code) | | |
setAgentId | public void setAgentId(String agentId)(Code) | | Set the agent id of the MBeanServer to locate.
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).
See Also: javax.management.MBeanServerFactory.findMBeanServer(String) |
setLocateExistingServerIfPossible | public void setLocateExistingServerIfPossible(boolean locateExistingServerIfPossible)(Code) | | Set whether or not the MBeanServerFactoryBean should attempt
to locate a running MBeanServer before creating one.
Default is false .
|
|
|