public class

NotificationListenerRegistrar

extends NotificationListenerHolder
implements DisposableBean InitializingBean
java.lang.Object
   ↳ org.springframework.jmx.support.NotificationListenerHolder
     ↳ org.springframework.jmx.access.NotificationListenerRegistrar

Class Overview

Registrar object that associates a specific javax.management.NotificationListener with one or more MBeans in an javax.management.MBeanServer (typically via a javax.management.MBeanServerConnection).

Summary

Fields
protected final Log logger Logger available to subclasses
[Expand]
Inherited Fields
From class org.springframework.jmx.support.NotificationListenerHolder
Public Constructors
NotificationListenerRegistrar()
Public Methods
void afterPropertiesSet()
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).
void destroy()
Unregisters the specified NotificationListener.
Map<String, ?> getEnvironment()
Allow Map access to the environment to be set for the connector, with the option to add or override specific entries.
void prepare()
Registers the specified NotificationListener.
void setAgentId(String agentId)
Set the agent id of the MBeanServer to locate.
void setEnvironment(Map<String, ?> environment)
Specify the environment for the JMX connector.
void setServer(MBeanServerConnection server)
Set the MBeanServerConnection used to connect to the MBean which all invocations are routed to.
void setServiceUrl(String url)
Set the service URL of the remote MBeanServer.
[Expand]
Inherited Methods
From class org.springframework.jmx.support.NotificationListenerHolder
From class java.lang.Object
From interface org.springframework.beans.factory.DisposableBean
From interface org.springframework.beans.factory.InitializingBean

Fields

protected final Log logger

Logger available to subclasses

Public Constructors

public NotificationListenerRegistrar ()

Public Methods

public void afterPropertiesSet ()

Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).

This method allows the bean instance to perform initialization only possible when all bean properties have been set and to throw an exception in the event of misconfiguration.

public void destroy ()

Unregisters the specified NotificationListener.

public Map<String, ?> getEnvironment ()

Allow Map access to the environment to be set for the connector, with the option to add or override specific entries.

Useful for specifying entries directly, for example via "environment[myKey]". This is particularly useful for adding or overriding entries in child bean definitions.

public void prepare ()

Registers the specified NotificationListener.

Ensures that an MBeanServerConnection is configured and attempts to detect a local connection if one is not supplied.

public void setAgentId (String agentId)

Set the agent id of the MBeanServer to locate.

Default is none. If specified, this will result in an attempt being made to locate the attendant MBeanServer, unless the "serviceUrl" property has been set.

public void setEnvironment (Map<String, ?> environment)

Specify the environment for the JMX connector.

public void setServer (MBeanServerConnection server)

Set the MBeanServerConnection used to connect to the MBean which all invocations are routed to.

public void setServiceUrl (String url)

Set the service URL of the remote MBeanServer.